why compiler try use my sqrt not std.math?

KnightMare black80 at bk.ru
Wed May 8 08:28:57 UTC 2019


so compiler thinks and try convert my code upper to
ulong sqrt1( ulong n ) {
   return cast( ulong )ceil<float OR real?>( @ret(ulong)my_sqrt( 
cast( ulong )real( n )));
}
why that? I didnt ask that.

yes, I know that I can add inside sqrt1
import std.math : sqrt;
but.. WHY?


More information about the Digitalmars-d mailing list