constant pointer failing to compile

Mathias LANG geod24 at gmail.com
Thu Apr 6 00:59:12 UTC 2023


> immutable ubyte[4] data = [1, 2, 3, 4];

Using a static array instead of a slice will do the trick. You 
can leave the `__gshared` if you want, but it is redundant on a 
global, initialized `immutable` variable.


More information about the Digitalmars-d-learn mailing list