Writing adaptor/wrappers with most scalability and least work

Pie? via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 4 08:29:09 PDT 2016


On Saturday, 4 June 2016 at 02:10:57 UTC, Adam D. Ruppe wrote:
> On Saturday, 4 June 2016 at 01:04:08 UTC, Pie? wrote:
>>     alias this pImage;
>
> It is actually `alias pImage this;`
>
> That should do what you want right here. Then you can add your 
> own methods or wrap/disable the image ones one by one.


Is there a better way or is this the standard technique? I was 
hoping to use some type of design by introspection but haven't 
come up with a solid way to accomplish this.



More information about the Digitalmars-d-learn mailing list