1. Structures [warning: was Eu vs Perl]
- Posted by Irv Mullins <irv at ELLIJAY.COM> Dec 10, 1999
- 412 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
2. Re: Structures [warning: was Eu vs Perl]
- Posted by Everett Williams <rett at GVTC.COM> Dec 10, 1999
- 399 views
Irv Mullins wrote: >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 Obviously, you have some master stroke of code that cuts this Gordian knot and I am too stupid to see it. Please put me out of my misery and elucidate. Everett L.(Rett) Williams rett at gvtc.com