[Joke] C++ and D namings
Ola Fosheim Grostad
ola.fosheim.grostad at gmail.com
Wed Jan 20 04:21:44 UTC 2021
On Wednesday, 20 January 2021 at 04:15:24 UTC, Steven
Schveighoffer wrote:
> Only if the real item is actually const. This is literally the
> first example on cppreference:
>
> int i = 3; // i is not declared const
> const int& rci = i;
> const_cast<int&>(rci) = 4; // OK: modifies i
>
How is this different from D? How does this lead to different
code gen?
More information about the Digitalmars-d
mailing list