Inject in to object
Adam D. Ruppe
destructionator at gmail.com
Sun Jun 2 20:16:15 UTC 2019
On Sunday, 2 June 2019 at 15:27:07 UTC, Amex wrote:
> It would be very useful to be able to "inject" reference in to
> Object so that one could add such information that would be
> available to all objects.
Have you tried just writing a function outside the object that
takes it as a parameter? It seems like that could do what you
want today.
void Display(Object _this) { ... }
More information about the Digitalmars-d
mailing list