Re: Eu improvements (part 4)

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

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

> 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:
> }}}
<eucode>
> euclass foo( sequence f )
>     integer bar, baz
> end euclass
> 
> ? foo.bar   -- output 1
> ? foo.baz   -- output 2
> </eucode>
{{{

> 

I understand that an OOp system can declare member variables.
But again, I am not proposing OOP  I am proposing SS and PBR.

If people want OOP then new features such as PBR and SS are not
necessary - they just start their program with
include "ooeu.e"  -- (or whatever your library is named)


Ktb

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

Search



Quick Links

User menu

Not signed in.

Misc Menu