On Wed, 28 Sep 2011 10:52:24 -0400, Kagamin <s...@here.lot> wrote:
Jonathan M Davis Wrote:Some programmers have expressed annoyance and/or disappointment that there isno logical const of any kind in D.isn't it trivial? void setConst(T1,T2)(ref T1 dst, in T2 src) { *cast()&dst=src; } const int v; setConst(v,5); assert(v==5);
Trivial, and also undefined behavior ;) -Steve