Implement Interface "dynamically"
Frustrated via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 14 07:45:00 PDT 2014
Is there a way to take an interface and implement it generically?
e.g., All functions are implemented either as throw and/or return
defaults and properties are implemented as getter/setters.
This is for mocking up so I a simple way to create a class based
off only the interface.
Essentially something similar to whitehole and blackhole except
properties are useable.
In fact, I suppose it would be nice to have something analogous
to them except properties are implemented. Then one could do
Blackhole!(Bluehole!C)
where Bluehole implements properties as getters and setters.
More information about the Digitalmars-d-learn
mailing list