FFI-Platypus
FFI-Platypus copied to clipboard
$ffi->closure(undef) should pass the undef through to the other side.
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.