Feature request: Make object composition easier

TommiT tommitissari at hotmail.com
Tue Mar 26 00:11:05 PDT 2013


On Monday, 25 March 2013 at 18:15:21 UTC, TommiT wrote:
> ... I would like to be able to say:
>
> (++bar).fun();

Actually, let's forget about this proposal. I thought about it a 
bit more, and I'm convinced that object composition is not the 
correct tool for what I'm trying to achieve. The mere fact, that 
post-increment operator in Foo cannot be composed into Bar like 
pre-increment could in the example above, is a clear indication 
that the tool isn't right for the job.


More information about the Digitalmars-d mailing list