Newbie initial comments on D language - scope
Walter Bright
newshound1 at digitalmars.com
Thu Jan 31 00:31:31 PST 2008
Edward Diener wrote:
> Now that I see where you are going, and you mentioned forwarding in your
> description above, I though of how boost::shared_ptr does it and I
> realized that the C++ 'operator ->' is the key. So I immediately looked
> for the equivalent in D, which would allow this to happen also, which
> would be an op function for the 'operator .'. But I could not find this
> operator supported in the D 1.0 docs. My suggestion then, if you are
> going to make the idea above work, is that you need to support an op
> function for the 'operator .' and then forwarding into the wrapped
> object would be simple and automatic no matter what functionality the
> wrapped object had.
I agree that a method for forwarding is needed to complete the job. I
plan on working on that after the RAII stuff is working.
More information about the Digitalmars-d
mailing list