Stopping compile time execution
Russel Winder
russel at winder.org.uk
Fri May 25 16:12:37 UTC 2018
On Sat, 2018-05-26 at 04:00 +1200, rikki cattermole via Digitalmars-d-
learn wrote:
> […]
>
> Use a module constructor to initialize your global.
Splendid idea! :-)
I know, I should have thought of that.
I note that if you click "Constructor" on https://dlang.org/spec/module
.html
you get taken to https://dlang.org/spec/class.html#Constructor which
really does help describe the concept of a module constructor.
--
Russel.
===========================================
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Road m: +44 7770 465 077
London SW11 1EN, UK w: www.russel.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20180525/14ef4d91/attachment.sig>
More information about the Digitalmars-d-learn
mailing list