|
ChaiScript
|
Defines a ChaiScript object attribute
Defines a variable
Synonym for var
Stops execution of a looping block.
Begins a function or method definition
identifier: name of function. Required. args: comma-delimited list of parameter names with optional type specifiers. Optional. guards: guarding statement that act as a prerequisite for the function. Optional. { }: scoped block as function body. Required.
Functions return values in one of two ways:
By using an explicit return call, optionally passing the value to be returned. By implicitly returning the value of the last expression (if it is not a while or for loop).
Method definitions for known types extend those types with new methods. This includes C++ and ChaiScript defined types. Method definitions for unknown types implicitly define the named type.
This loop can be broken using the break command.
Begins an anonymous function declaration (sometimes called a lambda).
Example
Begins a conditional block of code that only executes if the condition evaluates as true.
Example
Begins a conditional block of code that loops 0 or more times, as long as the condition is true
This loop can be broken using the break command.
Defines a variable
Synonym for auto
1.8.13