Skip to content
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

$ffi->closure(undef) should pass the undef through to the other side. #376

Closed
plicease opened this issue Oct 13, 2022 · 0 comments
Closed
Labels
🐣Enhancement Things that make it work better

Comments

@plicease
Copy link
Member

Right now this throws an exception:

✅ doublethink% perl -MFFI::Platypus -E 'FFI::Platypus->new->closure(undef)'
not a coderef at -e line 1.

but closure types can be undef, so I think it makes more sense to just pass it through as undef. Other non code refs should still throw the exception.

@plicease plicease added the 🐣Enhancement Things that make it work better label Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐣Enhancement Things that make it work better
Development

No branches or pull requests

1 participant