in reply to
XSUB: pass scalar by reference and assign value
Yes. It does all the steps:
Upgrades the scalar to something that can hold the desired type if it can't already.
Sets the value in the appropriate field of scalar.
Sets the bit indicating the appropriate field of the scalar has data, clearing the bits for the other fields.
Calls the scalar's set magic handler, if there is one.
Comment on
Re: XSUB: pass scalar by reference and assign value
Replies are listed 'Best First'.
Re^2: XSUB: pass scalar by reference and assign value
by
OlegG
(Monk)
on Jun 14, 2011 at 03:43 UTC
Thanks ikegami.
It was segfault with my XS code. So, I thought, that I do incorrect assigment to reference. But as usual problem was in the other place.
[reply]
In Section
Seekers of Perl Wisdom