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
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