in reply to Re^5: Why reftype and blessed are making my life harder than it needs to be (XS/_reftype)
in thread Why reftype and blessed are making my life harder than it needs to be
It seems sad, though, that reftype() won't be patched to XSRETURN_NO, especially as that makes more sense. Also, why can't the Perl version be patched to at least return !!0 instead of explicit undef?
XSRETURN_NO is how you do return !!0 in XS.
And the answer I think is here:
D:\dev\>perl -e"print defined !!0" 1
But Im hopeful that the p5p powers that be will be receptive of the idea of a _reftype() sub that returns PL_no instead of Pl_undef. (Which is what XSRETURN_NO and XSRETURN_UNDEF do.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Why reftype and blessed are making my life harder than it needs to be (XS/_reftype)
by dragonchild (Archbishop) on Feb 10, 2006 at 14:27 UTC | |
by demerphq (Chancellor) on Feb 10, 2006 at 14:36 UTC | |
by tye (Sage) on Feb 10, 2006 at 15:04 UTC | |
by demerphq (Chancellor) on Feb 10, 2006 at 15:38 UTC | |
by tye (Sage) on Feb 10, 2006 at 16:07 UTC | |
by dragonchild (Archbishop) on Feb 10, 2006 at 14:38 UTC |