Structures [warning: was Eu vs Perl]
- Posted by Irv Mullins <irv at ELLIJAY.COM> Dec 10, 1999
- 411 views
From: Everett Williams <rett at GVTC.COM> > David Cuny wrote: <snip some> > > > >Working with objects is now: > > > > constant Fred = newItem() > > constant Joe = newItem() > > > > name[Fred] = "Fred" > > ssn[Fred] = "000-00-0000" > > > > name[Joe] = "Joe" > > ssn[Joe] = "111-11-1111" > > A beautifully elegant way to be stuck at another static level. I must declare > a constant for each occurrence of the structure. The use of one sequence > per "field" is certainly a solution to the reference problem. Now, when I > wish to assemble the structure for IO, I must do just that...assemble it > one piece at a time. The lack of structures in Euphoria bothers me as well, see my postings on this subject from a couple of years ago. In this instance, you can illustrate your point about assembling for I/O without having to write more than one line of code. Go for it. Irv