1. Structures [warning: was Eu vs Perl]

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 message » categorize

2. Re: Structures [warning: was Eu vs Perl]

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu