Re: Language features: mixins

Patrick Niemeyer <[email protected]> Tue, 30 Nov 2004 15:50:33 -0600
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
On Nov 30, 2004, at 2:03 PM, Edward L. Gow wrote:

>
> I'm puzzled about importObject(). As Patrick described, it seems to
> behave like the 1.5 "import static". It makes the methods and 
> attributes
> of an instance available without requiring a qualifying reference to 
> the
> instance in the scope to which the importObject() applies. This does 
> not
> seem like mixins to me.

You're right that currently the importObject() functionality does not 
make the imported members visible outside the scope of the object.  If 
it were considered useful for scripted objects to do this it could be 
added easily...

After 2.x is finalized we'll put out some proposals for new language 
features and see what the community thinks.


thanks
Pat



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/