Proper way to protect (lock) a struct field after initialization ??

james.p.leblanc james.p.leblanc at gmail.com
Sun Aug 8 10:11:37 UTC 2021


Hello All.

Is there a standard way to protect a field of a struct after
the struct has been initialized?

Is this possible with a struct?

If not, I suppose a class (object) would be needed?  If so,
are there any simple pointers to an example of this?

Thanks in advance,

James



More information about the Digitalmars-d-learn mailing list