Yes, you are right. I should dereference first. But now, the issue is,
who can explain why the wrong code could also invoke class' public
method via THIS-print() successfully.
_wrong code_ : $var = ($type) SvIV($arg);
On 8/17/05, Nicholas Clark [EMAIL PROTECTED] wrote:
On Thu, Aug 11, 2005 at
On Thu, Aug 11, 2005 at 11:55:49AM +0800, Dongxu Ma wrote:
According to typemap in ExtUtils and perl.h, casting IV to pointer
should be safe in this case, since on my machine(32bit, kernel
2.6.12), sizeof(int) == 4, which is the same as a pointer. Does
anyone have any idea about this issue?