Additional type information
via Digitalmars-d
digitalmars-d at puremagic.com
Mon Mar 16 12:52:04 PDT 2015
On Monday, 16 March 2015 at 18:11:52 UTC, Idan Arye wrote:
> But `const` and `ref` do change type -
> http://dpaste.dzfl.pl/57b4086c5644.
>
> There simply is an implicit conversions between them and the
> unqualified types.
`const` does, but `ref` doesn't. You can check that by inserting
`pragma(msg, typeof(x));` into the functions in your example. But
there's nevertheless overloading for `ref`.
More information about the Digitalmars-d
mailing list