Joshua Isom (via RT) wrote:

Given the code

.sub main :main
     $N0 = 3.14
     $P0 = new .Integer
     $P0 = $N0
     print $P0
     print "\n"
.end

this will print 3.14, not 3. The same occurs if using an S register instead of an N register. This is with the latest revision.

Yep. That's how it is implemented. It was AFAIK never officially specced, what the base types are exactly doing for such cases. Therefore the semantics are roughly these of Perl PMCs.

leo


Reply via email to