simit-lang / simit

A language for computing on sparse systems
http://simit-lang.org
Other
452 stars 52 forks source link

global const and literals #89

Open Lugatod opened 7 years ago

Lugatod commented 7 years ago

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