Behavior of std.conv : to with alias this

Paul Backus snarwin at gmail.com
Thu May 20 18:27:02 UTC 2021


On Thursday, 20 May 2021 at 16:19:02 UTC, João Lourenço wrote:
>
> Is this the intended behavior of `std.conv : to`?
> Shouldn't it only fallback to the `alias this` if **none** of 
> those work?

The [documentation][1] of `std.conv.to` doesn't mention anything 
about implicit conversions or `alias this`, so at the very least, 
this is a bug in the documentation.

[1]: http://phobos.dpldocs.info/std.conv.to.html


More information about the Digitalmars-d mailing list