~andrewrk/ziglang

Re: static/comptime? map

Details
Message ID
<DBAP190MB098297B29F347706F24F4F74F9799@DBAP190MB0982.EURP190.PROD.OUTLOOK.COM>
DKIM signature
pass
Download raw message
PS I realised that this is more like a singleton initialiser, not a 
constructor.  Since a constructor could be solved by creating the state 
within the init fn call.

>
> But when I go back to the original 'crux' line of code, first it 
> complains it has to be constant because of 'type', but const cant be 
> re-assigned...  So now the problem is probably outside of Zig language 
> support, since this suddenly feels like a missing constructor, or 
> attempt at lazy/lateinit of a comptime/const.
Reply to thread Export thread (mbox)