--- Comment #8 from Kenji Hara <k.hara...@gmail.com> 2011-06-30 00:14:51 PDT ---
(In reply to comment #7)
> But that's true of immutable as well. In reality, any struct literal which
> exists at run time is stored in the executable as if it were immutable (just
> for a string literal).
??? I'm not speaking about object const-ness.
Yes, immutable struct literal will be stored in data-segment, but that is
binary level issue, and definitely different from language semantics level.
Give you an example.
This is my prototype code to improve std.typecons.Unique.
In it, by receiving only rvalues for its initializing and assignment, Unique
type can keep the uniqueness of stored object.
Similar improvements will be able on Scoped!T. By receiving only rvalue for
initializing, we can separate the struct object that allocated on stack and
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------