Re: Structures (WAS Re: Memory)
With Euphoria's sequences, what need is there for structures, really?
for example:
customer.name = "John Smith"
customer.phone = "555-1212"
customer.age = 23
could be represented in a sequence:
customer{"John Smith","555-1212",23}
then, if you want to access all of the sequence values, just use
customer, or if you want the age, customer[3].... you can make sequences
even more like structures, style-wise, by using constants to make NAME =
1, PHONE = 2, etc.
Maybe I'm wrong about this...but using sequences as structures works
just fine for me.
Greg
--
Greg Phillips
i.shoot at rednecks.com
http://euphoria.server101.com
--
Useless fact of the day:
Seoul, the South Korean capital, just means "the capital" in the Korean
language
|
Not Categorized, Please Help
|
|