|
Posted by Rami Elomaa on 05/04/07 10:17
"Toby A Inkster" <usenet200703@tobyinkster.co.uk> wrote in message
news:na6rg4-8oj.ln1@ophelia.g5n.co.uk...
> Mohawk Moak wrote:
>
>> this method worked good, i did not realize to set the global twice.
>
> You don't -- you only need to use it inside the function. Jon's use of
> "global" outside the function is entirely redundant, though doesn't cause
> any harm.
If you want to get technical, it's actually not even redundant, since it
does _nothing_. If it repeated something that already was done, then it
would be redundant.
And as for the harm, since it does nothing but litter the source code,
better take it out. That way it doesn't confuse the next person reading the
source...
--
Rami.Elomaa@gmail.com
"Good tea. Nice house." -- Worf
Navigation:
[Reply to this message]
|