Encapsulation

From GECK
Jump to: navigation, search
This article is incomplete. You can help by filling in any blank descriptions.
Further information might be found in a section of the discussion page. Please remove this message when no longer necessary.

Parenthesis

encapsulating a function as a single return value

if eval (somefunc arg1 arg2)

Curly Braces

encapsulating a function as an argument to another function

if eval (somefunc {someotherfunc arg1 arg2} arg3)

Square Brackets

encapsulating an argument for an array lookup

if somearray[index]

or

if somearray[index][key]

See Also