Re: override keyword?
- Posted by mattlewis (admin) Jan 04, 2009
- 1014 views
jcmarsh1 said...
SDPringle said...
I suppose the way to do this then is to change all include dll.e to include xalloc.e except for inside xalloc.e itself.
Shawn Pringle
Or you could try
include dll.e as dll include xalloc.e -- scope of call_back() will default to this one ... call_back() -- declared in xalloc dll:call_back() -- declared in dll.e
This will set the "default" function within a "class" file or euphoria file to the desired one, but that would only work for v3.0 on I think. There also is a way to set default namespaces from within v4.0 include files, and also to promote the scope of an include file to the next higher level, with keywords:
This will not work in either euphoria 3 or 4. Using the unqualified call_back will result in an error in both versions. Namespaces in euphoria are never required to access a symbol in the way that C namespaces do. They are only used to deconflict name clashes.
Matt