Skip to content

No unique range/dimension .. token #5

Description

@HippieKiller

Hi BeRo,
I noticed when looking through the code that the range .. symbol used in defining Array dimension doesn't have it's own token, and instead shares the TokColon token, which means you can compile weird stuff like this:

var x: packed array [1:5] of char;

instead of array [1..5], and also you can use the .. instead of : for defining types too

var y..char;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions