sqrt(2) must go
    Don 
    nospam at nospam.com
       
    Thu Oct 20 01:02:02 PDT 2011
    
    
  
On 20.10.2011 09:47, Manu wrote:
> Many architectures do not support real, and therefore it should never be
> used implicitly by the language.
>
> Precision problems aside, I would personally insist that implicit
> conversation from any sized int always be to float, not double, for
> performance reasons (the whole point of a compiled language trying
> to supersede C/C++).
On almost all platforms, float and double are the same speed.
Note that what we're discussing here is parameter passing of single 
values; if it's part of an aggregate (array or struct), the issue 
doesn't arise.
    
    
More information about the Digitalmars-d
mailing list