Skip to content

global const and literals #89

Description

@Lugatod

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions