betterC shared static ctor

vit vit at vit.vit
Wed Jul 21 08:04:06 UTC 2021


On Wednesday, 21 July 2021 at 08:02:42 UTC, vit wrote:
> Is it possible to call all shared static ctors in betterC?
> ```d
> //-betterC
>
> static immutable int i;
>
> shared static this(){
> 	i = 42;
> }
> extern(C) void main(){
>     assert(i != 42);
>
> }
>
> ```

Sorry, wrong forum section.


More information about the Digitalmars-d mailing list