mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-13 22:46:06 +09:00
basic: defun f call to run on complex expr as argument, not just a constant you dumbass
This commit is contained in:
8
assets/disk0/home/basic/fcallcomplex.bas
Normal file
8
assets/disk0/home/basic/fcallcomplex.bas
Normal file
@@ -0,0 +1,8 @@
|
||||
1 optiontrace 1:optiondebug 1
|
||||
10 defun fun(x)=2^x
|
||||
20 defun apply(f,x)=f((x+1)/2)
|
||||
30 k=apply(fun,6)
|
||||
40 print k
|
||||
50 print typeof k
|
||||
60 unresolve k
|
||||
70 resolve k
|
||||
Reference in New Issue
Block a user