basic: on DEFUN, unknown variables will be regarded as a global

This commit is contained in:
minjaesong
2020-12-09 09:40:16 +09:00
parent 9fa9a0a203
commit 1177690ee3
3 changed files with 11 additions and 5 deletions

4
assets/facrec.bas Normal file
View File

@@ -0,0 +1,4 @@
10 DEFUN FAC(N)=IF N==0 THEN 1 ELSE N*FAC(N-1)
20 FOR K=1 TO 6
30 PRINT FAC(K)
40 NEXT