FFI-Platypus icon indicating copy to clipboard operation
FFI-Platypus copied to clipboard

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

Open plicease opened this issue 2 years ago • 0 comments

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 avatar Oct 13 '22 16:10 plicease