Re: Namespace
- Posted by SPringle Jun 19, 2010
- 1923 views
Namespaces also gives you data encapsulation.
A Euphoria program could start like this:
include sets_simple.e as person_set include sets_simple.e as inventory_set include sets_binary.e as receipt_set
If you always use the namespaces, you can shift from one implementation to another simply by changing the included filenames named in the file. This works as long as the identifiers are present in all of the implementations and implement the same thing.
Shawn