----- Original Message -----
From: "Chris Marshall"
That is the motivation for NO_INIT but the docs suggest that
its operation is to stop any input stack handling code from
being generated. I.e., xsubpp please don't touch, we'll do it
ourselves... This particular usage may be a no-op but I don't
think that breaks anything (unless memory is lost or the
stack pointer is not correctly adjusted).
Ok - that makes sense, even to me.
If I'm not mistaken, that view brings us to the conclusion that these latest
versions of ExtUtils::ParseXS are doing something they ought not.
They have decided that, because a 'PDL_Long *' has been declared before the
'CODE' section, a 'PDL_Long *' typemapping is needed. And that is wrong.
That being the case, the correct fix is to get ExtUtils::ParseXS to revert
to the behaviour it has exhibited over the last umpteen years, and stop
making that false assumption.
OTOH, I was entertaining the idea that this assumption that these latest
versions were making was *correct* - and that earlier versions should have
been (but weren't) making the very same assumption.
I certainly don't mind admitting I was wrong about that, but I still feel
that the way NO_INIT is being used in Core.xs is (at least) counter to the
spirit of the way it was intended.
I don't see any point in using it and I'm presently thinking it should be
changed - especially now that, in conjunction with these changes to
ExtUtils::ParseXS, it's causing problems.
If we want to stick with the modified typemap solution I think we should at
least specify a nonsense value for 'PDL_Long *' such as T_BOGUS. Specifying
T_PTR might lead some to think that the specified value is meaningful. (I
know you put forward the "modified typemap solution" merely to see if that
fixed the problem - and that you didn't necessarily regard it as the final
fix.)
Anyway - must get some sleep. Looking forward to seeing what tomorrow
brings.
Cheers,
Rob
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl