Is 'alias this' too buggy/limited to be usable?

jmh530 john.michael.hall at gmail.com
Thu Jan 4 18:18:29 UTC 2018


On Thursday, 4 January 2018 at 17:36:07 UTC, Dennis wrote:
>
> Is it usable at the moment? Any improvements planned? I'd like 
> to hear some opionions or possible workarounds.

As a workaround, you can roll out your own versions of those 
functions, just cast Number to double and then pass it to the 
std.math functions (locally imported). You may also want to cast 
back to Number, or something.

One improvement would be to allow operator overloading for 
implicit casting, as in
https://issues.dlang.org/show_bug.cgi?id=3968


More information about the Digitalmars-d mailing list