simit icon indicating copy to clipboard operation
simit copied to clipboard

global const and literals

Open Lugatod opened this issue 8 years ago • 0 comments

Global const should be initialized with some computation, the same way as it is possible to do inside a func : const twelfth = 1.0 / 12.0 ;

The simit compiler answer :

Error: global constant must be initialized to a literal, at 91:5-32

Lugatod avatar Oct 11 '16 18:10 Lugatod