Re: Do you currently use namespaces?

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

ken mortenson wrote:
> 
> 
> You say myprog.ex can't access a:hello() in any way.  Got that.  But again,
> a include c, b include d.  If I understand correctly, then myprog.ex could
> call c:hello() or d:hello() even though they are not declared in myprog?
> 
> If so, this is not a good module.  However, I get the impression this is
> still an issue under discussion.  I'd like to see how the result encourages
> modular thinking.

Wait.. I think I misunderstood in my previous reply. Are you saying that if
include c defines a function for export and myprog.ex includes c directly that it
*shoulnd't* be able to access it? That that is bad modular programming?

--
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