Promoting to Complex

Jonathan Worthington jonathan at jnthn.net
Mon Sep 27 19:03:40 UTC 2010


Patrick R. Michaud wrote:
> I'm not strongly opposed to autopromoting Float to Complex; I just know
> that in Rakudo's case this behavior would be a pain to deal with, requiring
> that we create custom PMC types that don't have the autopromoting behavior.
>
>   
My preference would be against auto-promotion too, but I don't feel 
strongly on it. However, at this point I'd be *very* surprised if we're 
still using (in Rakudo) the Integer/Float PMCs for our Int/Num types 
after the meta-model replacement lands. Not that the change wouldn't 
potentially cause us issues if it lands before the meta-model 
refactor... :-)

Thanks,

Jonathan



More information about the parrot-dev mailing list