[Issue 5690] Struct const member makes struct const
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 24 05:22:58 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5690
--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2012-01-24 05:22:57 PST ---
Notice:
A NewExpression like (new StructWithConstMember(1, new C)) makes rvalue, but
dereferencing it (* new StructWithConstMember(1, new C)) makes *lvalue*.
So returning it from function by ref is valid.
--
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