Lucee Function Reference
structnew()
Creates a structure.
Example
structnew([string type,[function onMissingKey]]):struct
Category
struct,iterator
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
type | string | No | normal |
the type the struct created: the type "synchronized" is no longer supported and get ignored, because since version 4.1 all struct/scopes are "thread safe" |
onMissingKey | function | No | listener function that get invoked in case a request key does not exist. |