Re: temporization
On Mon, Mar 31, 2003 at 10:56:14AM +0200, Matthijs van Duin wrote: temp $foo := $bar; # temporarily bind $foo to $bar temp $foo = $bar;# temporarily assign the value of $bar to $foo I just realize 'temp $foo = 3' might just as well mean "bind $foo to a new scalar and initialize it to 3" as "temporarily assign 3 to $foo" I guess it wasn't a nice idea anyway considering it'd change the meaning of temp based on which operator you let loose on it, which is rather evil and rude now that I think of it. -- Matthijs van Duin -- May the Forth be with you!
temporization
Just checking.. will 'temp' temporize the container (like it does in perl 5) or the value? Both have their pros and cons and could be useful. Or will it depend on how the temp is used, like: temp $foo := $bar; # temporarily bind $foo to $bar temp $foo = $bar;# temporarily assign the value of $bar to $foo If so, what will plain 'temp $foo;' do? (I hope temporarily bind to a new variable) What if you have: my $foo is MyCoolScalar; and you want to temporize $foo as a normal scalar? (I guess this touches the issues surrounding localization of tied variables in perl 5) temp $foo is Scalar; ? (PS. I'm still working out the details of backtracking, but it's been going slow because I've been preempted by non-perl activities. I do from time to time try to work out some details in my head and then I run into little issues like the one above... to be continued) -- Matthijs van Duin -- May the Forth be with you!