MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | SYNOPSIS |
Zesstra | d59c389 | 2019-11-28 20:53:39 +0100 | [diff] [blame] | 2 | mixed restore_value(string str) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 3 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 4 | DESCRIPTION |
| 5 | Decode the string representation <str> of a value back into the value |
| 6 | itself and return it. <str> is a string as generated by save_value(). |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 7 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 8 | The '#x:y' version specification of the saveformat is optional, |
| 9 | however the driver will assume the old format version 0 in this case. |
| 10 | It is strongly recommended to regard the version specification as |
| 11 | non-optional in newly saved values. |
| 12 | |
| 13 | HISTORY |
| 14 | Introduced in LDMud 3.2.8. |
| 15 | LDMud 3.2.9 added the restoring of non-lambda closures, symbols, |
| 16 | and quoted arrays, using a new savefile format version. |
| 17 | LDMud 3.5.0 added the possibility to restore version 2 with its higher |
| 18 | float precision. |
| 19 | |
| 20 | SEE ALSO |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 21 | save_value(E), restore_object(E), save_object(E) |