Structures [warning: was Eu vs Perl]

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu