RE: [RC] Lucius tries to use namespace

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

Al Getz wrote:

> I see what you mean.  You're looking to inherit namespaces
> from other includes.  This sounds pretty good.  Im not sure
> if i want to make my libs users have to type more then one
> namespace prefix, but if the include could inherit the prefixes
> verbatim that might also take care of that too...

Well, they wouldn't *have* to do that.  They could always go ahead and 
re-include the files with their own namespace qualifiers if needed, but 
it would certainly be a huge convenience, because you could take Irv's 
idea of a wrapper that includes the files into namespaces, and not have 
to retype, etc.  Plus, the namespacing would likely be more consistent 
from app to app.

-- gtk_wrapper.e
include button.e as button
include textbox.e as text
-- ...etc

--my_app.exu
include gtk_wrapper.e as gtk

gtk:button:create()
gtk:text:set_text( "Hello World" )
 
Matt Lewis

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

Search



Quick Links

User menu

Not signed in.

Misc Menu