Front page | perl.perl6.language |
Postings from September 2001
RE: What's up with %MY?
Thread Previous
|
Thread Next
From:
Dan Sugalski
Date:
September 4, 2001 16:23
Subject:
RE: What's up with %MY?
Message ID:
5.1.0.14.2.20010904191946.02011d60@pop.sidhe.org
At 10:04 AM 9/5/2001 +1100, Damian Conway wrote:
>Dan wrote:
>Why not C<delete>? It merely requires that the internals equivalent of:
[Snippy]
>I don't understand why you think that's particularly wormy?
Ah, but what people will want is:
my $x = "foo\n";
{
my $x = "bar\n";
delete $MY::{'$x'};
print $x;
}
to print foo. That's where things get tricky. Though I suppose we could put
some sort of placeholder with auto-backsearch capabilities. Or something.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
dan@sidhe.org have teddy bears and even
teddy bears get drunk
Thread Previous
|
Thread Next