Re: Possible bug in NativeCall CStruct

2015-06-02 Thread Douglas E. Miles
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'

Re: Possible bug in NativeCall CStruct

2015-06-02 Thread Tobias Leich
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