Set a value in a table.
The given value will be put at the entry named by key into the table provided in thandle. Alternatively, you can also put the value by position into the table by providing the pos argument. If both, pos and key are provided, the key will be used. Though, both of them are optional, at least one of them has to be provided.
Put a single precision real value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=single_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a double precision real value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=double_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a default integer value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=int_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a long integer value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to look for. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to look for in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a string value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | val | Value to set in the table. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to set. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to set in the table. It allows the access to unnamed arrays in the Lua tables. |
Put a logical value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | val | Value to set in the table. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to set. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to set in the table. It allows the access to unnamed arrays in the Lua tables. |
Put user-data pointer into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(c_ptr), | intent(in) | :: | val | Pointer to set in the table. |
||
type(flu_State) | :: | L | Handle to the Lua script. |
|||
integer, | intent(in) | :: | thandle | Handle to the table to look the value up in. |
||
character(len=*), | intent(in), | optional | :: | key | Name of the entry to set. Key and pos are both optional, however at least one of them has to be supplied. The key takes precedence over the pos if both are given. |
|
integer, | intent(in), | optional | :: | pos | Position of the entry to set in the table. It allows the access to unnamed arrays in the Lua tables. |