Re: Namespace

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu