Re: Global = root of all evil

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

Pete Lomax wrote:

> PS eg fr:f(fr:x(),y(),fr:z())  should flag the y() missing namespace,
> obviously in real code that missing 'fr:' could be real hard to spot
> and/or lead to a very subtle and very hard to reproduce bug.

If we had the situation where every name collision had to be disambiguated using
namespace ids, and if one wanted to refer to a 'y()' routine that was local to
the current file, how would one indicate that? I mean, is it possible that the
current file can have a predefined namespace identifier ... ?

   fr:f( fr:x(), this:y(), fr:z() )


-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

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

Search



Quick Links

User menu

Not signed in.

Misc Menu