Call a function: Difference between revisions
Content deleted Content added
Added Quackery. |
|||
Line 1,555: | Line 1,555: | ||
<lang Dyalect>//There is no difference between subroutines and functions: |
<lang Dyalect>//There is no difference between subroutines and functions: |
||
func foo() { } //doesn't |
func foo() { } //doesn't explicitly return something (but in fact returns nil) |
||
func bar(x) { return x * 2 } // |
func bar(x) { return x * 2 } //explicitly returns value (keyword "return" can be omitted)</lang> |
||
Stating whether arguments are passed by value or by reference: |
Stating whether arguments are passed by value or by reference: |