Skip to content

#define pseudovariables not being passed to subsequent #bankfile sections #75

@NealeTools

Description

@NealeTools

Repro:

#define TEST=65536-(10*1024)
#autostart 1

10 %a=%#TEST
15 %b=%#TEST+#TEST
20 PRINT %a, #TEST, %a+a, %b

#bankfile RemyTest.bnk
10 %a=%#TEST
15 %b=%#TEST+#TEST
20 PRINT %a, #TEST, %a+a, %b

The resulting tokenisation creates these two output files (once converted back to text at: https://zx.remysharp.com/bas/)

#autostart 1
10 %a=%65536-(10*1024)
15 %b=%65536-(10*1024)+65536-(10*1024)
20 PRINT %a,65536-(10*1024),%a+a,%b
10 %a=%#TEST
15 %b=%#TEST+#TEST
20 PRINT %a,#TEST,%a+a,%b

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions