Skip to content

DEF FN using D accessing an array gives an syntax error #5

@Gud305

Description

@Gud305

Disclamer: my conclusion can be wrong.

When trying the old Star Trek basic game, I discovered a wired syntax error, that seems to only appear in BASIC65, when a function named D access an array.
The following code gives a syntax error in line 60
10 DIM X(8)
20 X(2)=2
30 DEF FND(Q)=X(2)*2
40 DEF FNDM(Q)=X(2)*3
50 PRINT FNDM(0)
60 PRINT FND(0)

When running in 64 mode, it returns the correct value, without a syntax error.

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