Alan Burlison <[EMAIL PROTECTED]> wrote:
> Dave Mitchell wrote:
> > * Is there ever any need to for a PMC type which holds both an int and
> > a
> > num? In the Perl 5 case we were constrained by code that expected to
> > always
> > find an int (or a num) in a fixed slot in the SV; with PMCs, all
> > access
> > to these slots is via methods, so an int-num or num-int conversion can
> > be done on the fly.
>
> There is.  You can't necessarily convert on the fly - perl5 allows
> dual-typed SVs where the string and number aren't necessarily
> interchangable versions of each other.

Ahem, I was asking about int and num, not num and string :-)

Dave M

Reply via email to