Access private member

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 13 00:49:18 PDT 2016


On 2016-06-13 09:43, Pierre wrote:
> Hi,
> I would like to know how can i access private member of class from
> outside ?
> I think about serialization for instance, serializer must have access to
> protected attributes. How this is done ?
> Thank you.

For fields, used .tupleof, for other symbols, use a pointer.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list