Another namespace addition for 4.0?

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

Matt,

Would it be useful/possible to be able to declare a namespace in the actual
include file? Here's what I am thinking, please let me know what you think. I
cannot imagine it would be too hard, but I could be wrong.

==== datetime.e
namespace dt

global function new(integer year, ....)
end function


==== myprog.ex
include datetime.e

datetime dt1
dt1 = dt:new(....)


Or, if a user wished, they could override the namespace:

==== myprog2.ex
include datetime.e as datetime

datetime dt1
dt1 = datetime:new(....)


--
Jeremy Cowgar
http://jeremy.cowgar.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu