Once Again, Feature Request: Nested classes in separate scope
downs
default_357-line at yahoo.de
Tue Nov 6 11:29:16 PST 2007
Steven Schveighoffer wrote:
>
> That being said, I think you are getting stuck up on the point that if a
> class contains a member, it owns that member *and* all data pointed to by
> the member. This isn't necessarily true, and is defined by the programmer,
> not the compiler. What the class owns is a *reference*. Whether it owns
> the memory pointed to by the reference or not is entirely up to you.
>
To be brutally honest, the ownership stuff was mostly
retrojustification; what I was really after was the syntax candy :p
Ah well. Can't have everything.
--downs
More information about the Digitalmars-d
mailing list