`ref T` should be a type!!
Walter Bright
newshound2 at digitalmars.com
Tue Apr 2 20:43:14 UTC 2019
On 4/2/2019 4:05 AM, Andrei Alexandrescu wrote:
> You forgot to mention that top-level "const" is ignored in function parameters
> (for the signature and mangling but not the implementation).
Curiously, it is present in the name mangling for dmc++ and dmd (for extern(D)),
but it should be fixed for dmd.
https://issues.dlang.org/show_bug.cgi?id=19785
> Now the fact that
> "42" is just ignored in the declaration below is indistinguishable from conspiracy:
>
> void fun(int a[42]);
Ironically, it is not ignored in the C++ mangling if it's a ref to int[42].
More information about the Digitalmars-d
mailing list