Timeline for Is this technique a design pattern? If so, what's it called?
Current License: CC BY-SA 2.5
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 6, 2011 at 16:08 | comment | added | Umar Farooq Khawaja | It is obvious the OP meant that the value being set is one of a set of enumerated values. It could be a string value from a set of strings, or an enum value from an enum, it makes no difference. The OP also clarified that he was not interested in the way bar is actually set, but rather in the fact that it is set as a result of setting foo. | |
Nov 16, 2010 at 4:48 | comment | added | Anthony | "... should be one of a few constants." So no, it's not a constant that is changed. | |
Nov 15, 2010 at 23:31 | history | answered | Paul Nathan | CC BY-SA 2.5 |