Another namespace addition for 4.0?
- Posted by Jeremy Cowgar <jeremy at cow?ar.co?> Apr 25, 2008
- 684 views
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