New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'HAS' Embedded C-Structs not working as documented #6572
Comments
From @dwarringFrom class Point is repr('CStruct') { class MyStruct2 is repr('CStruct') { my $s = MyStruct2.new; Produces: 0 Ie, the embedded struct is not automatically created and defined, when a Rakudo version 2017.09-199-gc91c40115 built on MoarVM version |
From @skidsOn Wed, 04 Oct 2017 23:19:19 -0700, david.warring wrote:
This is more an NYI than a bug... the code for that is more or less |
The RT System itself - Status changed from 'new' to 'open' |
From @dwarringThanks for that. As a worka-around Rakudo seems to do a better job, if I use NativeCall; class MyStruct2 is repr('CStruct') { say .name, ': ', .inlined for MyStruct2.^attributes; my $s = nativecast(MyStruct2, buf8.new: 42,69,11); Produces: $!point: 1 On Fri, Oct 6, 2017 at 5:12 AM, Brian S. Julin via RT <
|
It seems to work a bit better now:
|
Migrated from rt.perl.org#132222 (status was 'open')
Searchable as RT132222$
The text was updated successfully, but these errors were encountered: