Proxy objects and controlling/monitoring access

Bill Baxter dnewsgroup at billbaxter.com
Fri Aug 17 16:40:28 PDT 2007


Reiner Pope wrote:
> Bill Baxter wrote:
> I've written code which wraps a value in a class which derives from a 
> given interface. The interface is implemented by calling the value's 
> fields.  See the unit test of the attached mixininterface.d for 
> examples. In fact, the code isn't so messy, but it uses my own 
> collection of CTFE utils in my_metastrings.
> 
> I don't imagine it would be too hard to adapt my code to generate the 
> wrapper you want.

Cool. I'll give it a try when I get a chance and let you know what I find.

--bb



More information about the Digitalmars-d mailing list