Nick Wellnhofer wrote on 11/26/15, 11:31 AM:
Lucifers,If there's a method taking a bool parameter with a `true` default value: class Foo { void Bar(Foo *self, bool param = true); } And we're passing `undef` to this method via Perl: $foo->bar(undef); Then the generated XS wrapper will convert `undef` to the default value `true`. Since `undef` is often used as falsy value in Perl, this seems wrong to me. For numbers, it makes sense to replace `undef` with a default value, but we should make an exception for Booleans.
+1 seems like the least surprising behavior. -- Peter Karman . http://peknet.com/ . [email protected]
