At 10:45 PM 8/1/00 -0400, Chaim Frenkel wrote:
> >>>>> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes:
>
>DS> I'd rather not do it for globals, though. (Actually I'd be just as 
>happy to
>DS> see local go missing entirely, but that's just me looking at the guts...)
>
>But local() is so useful. A nice anonymous place to store a value and have
>it restored.

Oh, it's useful, no doubt about that. I just wince at the requisite 
undersides... :)

>Hmm, what about restricting it to only scalar values? or perhaps, simply
>restricting it from the innards of aggregate objects?

Nah, if it's in for scalars it might as well be in for everything. Not that 
much more work to make it proper for hashes and arrays. (muddies empty list 
assignments for hashes since you need to track which keys are localized, 
but that's about it)

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to