typeof on protected field

Adam D. Ruppe destructionator at gmail.com
Sun Jun 17 02:29:12 UTC 2018


On Saturday, 16 June 2018 at 08:32:38 UTC, DigitalDesigns wrote:
> I need to get the protected and private members for 
> serialization.

This breaks encapsulation.

A better design would be to have a class know how to serialize 
itself via a serializable interface.


More information about the Digitalmars-d-learn mailing list