Re: Re: Clarification on the Enum language structure
| From: | Stas Malyshev | Date: | Wed, 23 Feb 2011 09:58:59 +0000 |
| Subject: | Re: Re: Clarification on the Enum language structure | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51508@lists.php.net to get a copy of this message | ||
Hi!
Are you suggesting this as an enum member function, or just a regular function in any old class?"Enum member funcion"? How much it should be like a class before you call it a class?
use the function: you would usually be expected to pass in a true enum constant of the MyEnum type.That works wonders in dynamic languages, without any means of really ensuring it. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227