Thanks FROGGS! I got that to work after updating MoarVM.
On 06/02/2015 01:21 PM, Tobias Leich wrote:
Hi, when you install latest MoarVM, you can do this:
$ perl6 -e 'use NativeCall; class Foo is repr { has str $.bar
is rw }; my $foo = Foo.new(bar => "bar"); say $foo; $foo.bar = "baz";
say $foo'
Hi, when you install latest MoarVM, you can do this:
$ perl6 -e 'use NativeCall; class Foo is repr { has str $.bar
is rw }; my $foo = Foo.new(bar => "bar"); say $foo; $foo.bar = "baz";
say $foo'
Foo.new(bar => "bar")
Foo.new(bar => "baz")
Note the lowercase str type.
The normal Str type can be se
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: 2cd06fd900f0a24b684172a5d4ec1557b9598c47
https://github.com/perl6/specs/commit/2cd06fd900f0a24b684172a5d4ec1557b9598c47
Author: Stéphane Payrard
Date: 2015-06-02 (Tue, 02 Jun 2015)
Changed paths:
M S
Hi all!
I just started learning Perl 6 about 5 days ago, so I may not know what
I'm talking about, but I may have found a bug. I posted to #perl6 with
my original code, and raydiak and timotimo were nice enough to golf it
down for me:
Str in CStruct blows up:
$ perl6
> use NativeCall; class
# New Ticket Created by Sam S.
# Please include the string: [perl #125312]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=125312 >
According to http://design.perl6.org/S04.html#line_1380 'start' should probably
be a statement
# New Ticket Created by Jonathan Stowe
# Please include the string: [perl #125302]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=125302 >
I had no idea whether it was possible to construct a regex object by other
means than
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: b413e555d2ad4f1fd7a2da8454dcb00cf402fdda
https://github.com/perl6/specs/commit/b413e555d2ad4f1fd7a2da8454dcb00cf402fdda
Author: Stéphane Payrard
Date: 2015-06-01 (Mon, 01 Jun 2015)
Changed paths:
M S
Branch: refs/heads/master
Home: https://github.com/perl6/specs
Commit: 86bb33ff986eb42cf61796c5c536b9820899a12d
https://github.com/perl6/specs/commit/86bb33ff986eb42cf61796c5c536b9820899a12d
Author: Moritz Lenz
Date: 2015-06-01 (Mon, 01 Jun 2015)
Changed paths:
M html/i