10 PRINT FN square(3), "\n"
20 DEF FN square(x) = x * x
This is an error because square only exists at the time it is encountered. We should parse definitions at the time we load the program - much like we do for processing DATA tokens.
This is a pain because there isn't a great solution, but we should handle it regardless.
Currently this is an error:
10 PRINT FN square(3), "\n" 20 DEF FN square(x) = x * x
This is an error because
square
only exists at the time it is encountered. We should parse definitions at the time we load the program - much like we do for processing DATA tokens.This is a pain because there isn't a great solution, but we should handle it regardless.