Re: Eu Improvements consolidation

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

Jason Gade wrote:
> 
> Matt Lewis wrote:
> > 
> > Jason Gade wrote:
> > > 
> > > Karl Bochert wrote:
> > > > 
> > > > 
> > > > The 'fixed sequence':
> > > > 1) has named elements
> > > > 2) cannot have its structure modified
> > > > 3) contains only data (like any other sequence)
> > > > 4) may be put in another sequence without losing its
> > > >    identity (like any other data)
> > I don't cover 2 or 3, and 4 is maintained only if you put it into another
> > class into a member of the appropriate type.  I was more interested in
> > the functionality than strict type checking.  Being able to have control
> > over the data is one reason why I like Euphoria, and to do those things
> > would have taken a lot more effort than what I did. :)
> 
> Thanks for the answer, Matt. I like the flexibility, too. Does that mean that
> after you instantiate a class you can add more members to it?

Not named members, but the object is really just a sequence for which
the interpreter knows some special ways to interact with it.  You could
use the eval() to make a subclass dynamically that inherits from it,
though.

> > That's a good point.  There are actually two types of PBR in ooeu, once
> > you consider var_id's.
> >  
> 
> What's the other version? I guess I'll go back and look at the docs again.

URL for PBR docs:
http://ooeu.sourceforge.net/docs/PASS_BY_REFERENCE.htm

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu