Re: Do you currently use namespaces?

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

Derek Parnell wrote:
> 
> The D programming language has the addition concept of a package. I believe
> that Java has too. A package is essentially a named collection of modules.
> Anyhow,
> the thing is you can declare a symbol has being exposed only to its module,
> or only to its package, or to everything.
> 
> Maybe this can be used in Euphoria too somehow.
> 

Derek,

We currently have the ability for a file to declare it's namespace, what do you
think about building from it:


-- pack_a.e
namespace pack

friend integer abc

-- pack_b.e
namespace pack

include pack_a.e

? abc


I have no idea if friend is a good word or not, but it's not global and not
local. It says you can share this item with other files in the same namespace.

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu