Contents
Syntax
The syntax for
function{options}(name)
{
//function code
}
@function{options}(name)
{
//function code
}
Description
The
Note:
@function(f)
{
# block
}!
Options
The following options are available for
| option | description |
|---|---|
| function is in |
|
| function is in |
|
| function is not constant | |
| function is a |
|
| define function at scope layer |
|
| do not return output (option available at call time) | |
| return output (option available at call time) | |
| parse function block at definition time | |
| function is private | |
| function can be called from scope |
|
| do not add scope when function is called (option available at call time) | |
| add scope when function is called [default] (option available at call time) | |
| option | description |
f++ example
Examples of
function(myFunc)
{
console("hello, world!")
}
myFunc
function(myFunc)
{
console("options: {", vjoin(options, "; "), "}")
console("params: {", vjoin(params, "; "), "}")
}
myFunc{a, b, c}("hello", "world!")
n++ example
Example of
@function(myFunc)
@console("hello, world!")
@myFunc

![[ports] (FreeBSD) Get it from the FreeBSD [ports]](../../images/freebsd.webp)
