Skip to content

global const and literals #89

@Lugatod

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions