[Issue 5984] add new keywords obj_const and obj_immutable to make it possible to declare mutable reference variables referencing const or immutable class instances

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 13 11:47:18 PDT 2011


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



--- Comment #3 from kennytm at gmail.com 2011-05-13 11:43:14 PDT ---
(In reply to comment #2)
> Where do I find the "const(Object) ref" syntax described?  I've never run
> across it in the D Language Reference.  Point me to some info about this
> particular syntax and then I'll be able to comment on how my own syntax may be
> superior.
> 

This is a third-party proposal, and isn't even approved. You won't find it in
the official reference ;)

See bug 5325 and the huge thread in
http://www.digitalmars.com/d/archives/digitalmars/D/const_Object_ref_is_here_123681.html.
You may also search for "tail const" to find a lot of previous discussions.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list