[Issue 1703] invariant(Class) does not work as expected

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 1 04:34:28 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1703





------- Comment #2 from markusle at gmail.com  2007-12-01 06:34 -------
Hi Janice,

Thanks much for your comments and casting works fine
indeed. The main reason I brought this up was that the
docs at http://www.digitalmars.com/d/const3.html
explicitly state that what I posted should be possible 
(the snippet of code is pretty much verbatim taken from there).
and works fine for structs but not for classes.

Hopefully, I didn't completely misunderstand the docs.

cheers,
Markus


-- 



More information about the Digitalmars-d-bugs mailing list