What about SplEnum? (http://php.net/splenum)
It's part of the SPL types extension, but it could probably be also moved to core. Nikita On Wed, Feb 22, 2012 at 5:45 AM, Samuel Deal <samuel.d...@gmail.com> wrote: > Hi all, > > I really missed enums in PHP, > So after reading I tryed to synthetise the various views. > > You can find a draft here : > https://github.com/SamNrique/php-src/wiki/RFC-draft > (I can't write on the wiki, and perhaps it's better to finish the > discussion first) > > There's an implementation with this draft. > I'd love to have feedbacks because it's my first php-core hack. > > Thanks > -- > Samuel Déal > samuel.d...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php