Re: Eu improvements (part 4)

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

Karl Bochert wrote:
> 
> Do you object to others using SS? Why?
> Perhaps what you want is not to avoid SS, but to extend it??
>   sequence colors is
>     constant
>         blue = 3, red = 1
>   end sequence
>   ?length(colors)  --> 0 
>   ?colors.blue     --> 3

This is basically what ooeu does (although you don't have to declare what
the constants will be).  They're defined similar to an enum:
euclass foo( sequence f )
    integer bar, baz
end euclass

? foo.bar   -- output 1
? foo.baz   -- output 2


Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu