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 quadruple precision real value into a table.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=quad_k), | intent(in) | :: | val | Value of the table entry if it exists. |
||
type(flu_State) | :: | L | ||||
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. |