On 2020-01-09 07:38, Elizabeth Mattijsen wrote:
Argh. Indeed, you can't.
say int32.^name; # int32
You can only find out the name of the type,*not* when you used that type to
create a variable. Because that is just a value in memory*without* a specific
type. To be able to call a method on it, it needs to be ugraded to its object
equivalent, which is Int in the case of int32 (and all other native int types,
even the unsigned ones).
So I think the answer is: you can't with any native values.
Sorry for the noise.
Hi Elizabeth,
At least I can tell if someone passed me something
other than a Str or and Int. 90% solved is better
than zero %.
And if anyone sends me an int64, the upper four bytes
will just get dropped, so all is well in mudville
(a reference to a baseball poem).
Thank you for the help!
-T