Call a function: Difference between revisions

Content added Content deleted
(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 explicitely return something (but in fact returns nil)
func foo() { } //doesn't explicitly return something (but in fact returns nil)
func bar(x) { return x * 2 } //explicitely returns value (keyword "return" can be omitted)</lang>
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: