Re: SS

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

Chris Burch wrote:
> 
> I actually quite like this idea too.
> 
> I see you could have structures within structures.
> 
> Under this definition, could you have a sequence contain structures?
> eg
> }}}
<eucode>
>    -- Define a structure
>    structure Point is
>       atom x, y
>    end structure
> 
> sequence my_sequence
> my_sequence = repeat(Point, 10)
> 
> my_sequence[5].x = 4
> 
> </eucode>
{{{

> 
> ie, arrays
> 
Yes, I think this is important, and I put this feature (still a bit 
buggy, I think) into ooeu, although you have to declare:
sequence of Point points

Of course, one difference is that my class objects are really just 
sequences (or possibly atoms), and there is no way for the backend
to know that it's dealing with a specific class unless it's declared.

I'm still not on board with the idea that "structures aren't sequences."
Partly for implementation issues, partly because I think it de-simplifies
the language needlessly.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu