To get my Objective-C/Perl 'gateway' a little more perfect, I need a blessed reference to double as a scalar value. That works fine in C:
rv=sv_2mortal(newSViv((IV)obj));
SvRV(rv)=theGlue->perlObject;
SvROK_on(rv);
sv_bless(rv,stash);
works in C. However, I am not able to access the scalar value from perl. I naively hoped, that using the SV in a scalar context would return the scalar value, and, when dereferenced, the reference...
A penny for your thoughts...
Gerd Knops
gerti@BITart.com
rv=sv_2mortal(newSViv((IV)obj));
SvRV(rv)=theGlue->perlObject;
SvROK_on(rv);
sv_bless(rv,stash);
works in C. However, I am not able to access the scalar value from perl. I naively hoped, that using the SV in a scalar context would return the scalar value, and, when dereferenced, the reference...
A penny for your thoughts...
Gerd Knops
gerti@BITart.com