Call a function: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 4,450: | Line 4,450: | ||
add 1 to n |
add 1 to n |
||
end AddOne</lang> |
end AddOne</lang> |
||
SenseTalk also distinguishes between functions and subroutines, which it calls handlers: |
|||
<lang sensetalk>CustomHandler 1, 2, 3 |
|||
// Prints: 1 - 2 - 3 |
|||
handler CustomHandler arg1, arg2, arg3 |
|||
put arg1 && "-" && arg2 && "-" && arg3 |
|||
end CustomHandler</lang> |
|||
=={{header|Sidef}}== |
=={{header|Sidef}}== |