Re: Global = root of all evil

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

On Wed, 01 Nov 2006 20:38:35 -0800, ags <guest at RapidEuphoria.com>
wrote:

>}}}
<eucode>
>else
>    greet() -- default
></eucode>
{{{

IMO, you really don't want to do that. If there is more than one 
routine named "greet()", you must be specific. Having a 'default' 
version of greet() (presumably the one from the include w/o "as") 
which the compiler just assumes you mean if you forget a qualifier 
could be /really/ annoying. 

>
>... where you would be forced to use name space qualifiers.
was the above a typo then?

Regards,
Pete
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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu