Skip to content

Conversation

@jbarrett
Copy link

@jbarrett jbarrett commented Mar 20, 2025

Just a thought ... Could be handy for, e.g.

sub cb { ... }

my $thing = Some::Struct->new(
    callback => $ffi->cast( '(int)->void' => 'opaque', $ffi->closure( \&cb )->sticky ),
    ...
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant