mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
[stdlib] add call to manually invoke functions
This commit is contained in:
parent
bbf7b7a437
commit
892cb2c623
6 changed files with 38 additions and 0 deletions
5
test/results/manual call assignment.ans
Normal file
5
test/results/manual call assignment.ans
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--# run #--
|
||||
--- return ---
|
||||
15
|
||||
--# saved #--
|
||||
{}
|
||||
5
test/results/manual call.ans
Normal file
5
test/results/manual call.ans
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
--# run #--
|
||||
--- return ---
|
||||
5
|
||||
--# saved #--
|
||||
{}
|
||||
4
test/tests/manual call assignment.ans
Normal file
4
test/tests/manual call assignment.ans
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
:$func(x, y) = v
|
||||
x + y + v
|
||||
|
||||
func!call[2, 3] = 10
|
||||
4
test/tests/manual call.ans
Normal file
4
test/tests/manual call.ans
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
:$func(x, y)
|
||||
x + y
|
||||
|
||||
func!call[2, 3]
|
||||
Loading…
Add table
Add a link
Reference in a new issue