How to write a class proxy ?

boolangery eliott.dumeix at gmail.com
Wed Mar 20 08:16:22 UTC 2019


Hi,

What is the best way to write a class proxy ?
I need to intercept attribute access.

Example:

The user write a PODO:

class User
{
     string name;
}


Then he use my library:

auto user = mylib.get!User(); // return a proxy here

writeln(user.name); // intercept user.name access (how to do this 
?)




More information about the Digitalmars-d-learn mailing list