On Sun, May 03, 2009 at 08:20:17PM +0200, Moritz Lenz wrote:
: If I understood the specs correctly, variables can be lifted, so you can
: write
:
: sub f() {lift $a + $b};
: {
: my $a is context = 3;
: my $b is context = 4;
: say f();
: }
:
: Is that correct?
I think so.
: And if
Em Dom, 2009-05-03 às 21:15 -0700, Larry Wall escreveu:
On Sun, May 03, 2009 at 08:20:17PM +0200, Moritz Lenz wrote:
: If I understood the specs correctly, variables can be lifted, so you can
: write
:
: sub f() {lift $a + $b};
: {
: my $a is context = 3;
: my $b is context = 4;
Hi,
I've written a few tests for two things that I feel I don't really
understand,
traits and the `lift' statement prefix. You can find them in
t/spec/S14-traits/basic.t
t/spec/S04-statements/lift.t
I'd appreciate it if you could take a look at them and tell me if they
conform
to what the spec
Moritz Lenz wrote:
sub f (lift $a + $b);
I mean 'sub f() { lift $a + $b }', sorry.