Read Once then reset/init value?
Robert M. Münch
robert.muench at saphirion.com
Tue Oct 29 22:24:20 UTC 2019
I quite often have the pattern where a value should be read just once
and after this reset itself. The idea is to avoid that others read the
value by accident and get an older state, instead they get an
"invalid/reset" value.
Is there a library function that can mimic such a behaviour?
--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
More information about the Digitalmars-d-learn
mailing list