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