[Issue 2027] No way to declare only the reference 'const' or 'invariant' for reference types.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 14 17:07:45 PDT 2008


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


bugzilla at digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #2 from bugzilla at digitalmars.com  2008-05-14 19:07 -------
Const and invariant are designed to be fully transitive. There is no way to
declare a const reference to mutable data; this is by design. (It has been
debated very extensively in the newsgroups.)


-- 



More information about the Digitalmars-d-bugs mailing list