Re: Euphoria vs. C and OOP

new topic     » goto parent     » topic index » view thread      » older message » newer message

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/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu