FYI, the builtin types automatically shimmer based on assignment.

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

prints:

Float
3.14

The assignment of an N register causes the Integer PMC to morph to a Float.

On Jan 10, 2006, at 3:32 PM, Joshua Isom (via RT) wrote:


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

Reply via email to