On Wed Jul 16 01:47:29 2008, mor...@casella.verplant.org wrote:
State variables need to be implemented, the tests are already there in
S04-declarations/state.t
As a side node (and related to RT #56748), rakudo as of r29490 gives a
bogus error message when encountering a state declaration:
On Wed Jul 16 01:47:29 2008, mor...@casella.verplant.org wrote:
State variables need to be implemented, the tests are already there in
S04-declarations/state.t
As a side node (and related to RT #56748), rakudo as of r29490 gives a
bogus error message when encountering a state declaration:
On Tue, Mar 17, 2009 at 09:19:55AM -0700, jn...@jnthn.net via RT wrote:
On Wed Jul 16 01:47:29 2008, mor...@casella.verplant.org wrote:
State variables need to be implemented, the tests are already there in
S04-declarations/state.t
As a side node (and related to RT #56748), rakudo as of
Nicholas Clark wrote:
Do you have list assignment working properly? ie:
state (@foo) = @bar;
and, I think,
state (@foo) = baz();
Aye, thankfully that just fell naturally out of Rakudo's existing list
assignment implementation, though it was under-tested. So I just added:
my
On Tue, Mar 17, 2009 at 05:59:52PM +0100, Jonathan Worthington wrote:
Nicholas Clark wrote:
Do you have list assignment working properly? ie:
state (@foo) = @bar;
and, I think,
state (@foo) = baz();
Aye, thankfully that just fell naturally out of Rakudo's existing list
Nicholas Clark wrote:
Yay. As does this?
my @bar = 1,2,3;
sub swatest {
(state @foo) = @bar;
my $x = @foo.perl;
@foo[0]++;
return $x
}
is swatest(), '[1, 2, 3]', 'array state initialized correctly';
is swatest(), '[1, 2, 3]', 'array state retained
Nicholas Clark via RT wrote:
On Tue, Mar 17, 2009 at 05:59:52PM +0100, Jonathan Worthington wrote:
Nicholas Clark wrote:
Do you have list assignment working properly? ie:
state (@foo) = @bar;
and, I think,
state (@foo) = baz();
Aye, thankfully that just fell naturally
On Tue, Mar 17, 2009 at 06:45:51PM +0100, Jonathan Worthington wrote:
Nicholas Clark wrote:
Yay. As does this?
my @bar = 1,2,3;
sub swatest {
(state @foo) = @bar;
my $x = @foo.perl;
@foo[0]++;
return $x
}
is swatest(), '[1, 2, 3]', 'array state
Nicholas Clark wrote:
On Tue, Mar 17, 2009 at 06:45:51PM +0100, Jonathan Worthington wrote:
Nicholas Clark wrote:
Yay. As does this?
my @bar = 1,2,3;
sub swatest {
(state @foo) = @bar;
my $x = @foo.perl;
@foo[0]++;
return $x
}
is swatest(), '[1, 2, 3]',
# New Ticket Created by Moritz Lenz
# Please include the string: [perl #56976]
# in the subject line of all future correspondence about this issue.
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56976
State variables need to be implemented, the tests are already there in
10 matches
Mail list logo