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.

Nick

Reply via email to