in reply to Re^2: yet another thread question: is Symbol::gensym threadsafe?
in thread yet another thread question: is Symbol::gensym threadsafe?
But, as the names are immediately deleted from the symbol table each time:
delete $$genpkg{$name};
before the reference is returned to the caller, they can never again be referenced by name, so I don't think there is the possibility for confusion there. Hence, as the sequenced names are never used beyond the point of creation, there seems no reason for sequencing them in the first place when local can give us a new, unnamed glob whenever we want one?
I'm guessing the current implementationis simply a part of history from before local was available--and definitely predating me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: yet another thread question: is Symbol::gensym threadsafe? (history)
by tye (Sage) on Oct 24, 2007 at 16:13 UTC | |
by BrowserUk (Patriarch) on Oct 24, 2007 at 16:32 UTC | |
by ikegami (Patriarch) on Oct 24, 2007 at 17:03 UTC |