Re: Euphoria vs. C and OOP
- Posted by duke normandin <dnormandin at bsdrocksperlrolls.com> Jan 05, 2007
- 739 views
jacques deschĂȘnes wrote: > > I never mentioned a dot notation > > The only addition would be enum declaration > > enum {first_name, last_name, street, town} > > sequence addresse > > address = repeat(0,5) > > address[first_name] = "Don" > address[last_name] = "Cole" > etc... > > this would reduce typing compared to > constant first_name=1, last_name=2, town=3 > > and those enum could only be used to access sequence elements > That's an associative array, right? I'm in!! and throw in a good implementation of "foreach" to walk through that or *any* array, or list, or sequence. ;)) a la prochaine... -- duke http://www.rootshell.be/~perlster/euphoria/