Rafael Garcia-Suarez <[EMAIL PROTECTED]> writes:
>Sergey Skvortsov wrote:
>> 
>> Situation: There is a class with no childs (class can't be inherited by 
>> design).
>> 
>> Question: Is it safe to cache stash address in the static var? And using 
>> this var in consequent blesses?
>
>As long as the stash is not completely destroyed and recreated later,
>this should be fine (even when inheritance is involved etc.).

Snag would be for threads - and you might even get away with it there.
I am not sure of stashes are "cloned" on thread create...

Reply via email to