Promoting to Complex

Paul C. Anagnostopoulos paul at
Sun Sep 26 17:58:13 UTC 2010


Should PMC functions with partial complex ranges promote their result to a Complex? For example, should sqrt(negative Float) produce a Complex? This issue does not pertain to native numbers, since we never promote them to PMCs.

There is precedence for doing this. For example, Integer promotes to BigInt when necessary. 

~~ Paul

Windfall               Paul C. Anagnostopoulos 
   Software             978 371-2316 
Metaphorical invocations ... often suffer from the
weakness of giving such satisfaction to the human
mind that they tend to be mistaken for incisive and
illuminating observations. ---Torkel Franzen 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the parrot-dev mailing list