Skip to content

Behaviour of Arrays #27

@mzuenni

Description

@mzuenni

Is this intended behaviour that a variable is used like a special index in the array?
i.e. that those two programs are valid and accept:

SET(a=1)
ASSERT(INARRAY(1,a))
SET(a=1)
SET(a[1]=1)
ASSERT(!UNIQUE(a))

(My assumption would have been that a variable must either be an array or a value but not both at the same time)

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