MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | object to_object(string arg) |
| 3 | object to_object(closure arg) |
| 4 | object to_object(object arg) |
| 5 | |
| 6 | DESCRIPTION |
| 7 | The argument is converted into an object, if possible. |
| 8 | For strings, the object with a matching object_name() is |
| 9 | returned, or 0 if there is none, as find_object() does. |
| 10 | For (bound!) closures, the object holding the closure is |
| 11 | returned. |
| 12 | Objects and the number 0 return themselves. |
| 13 | |
| 14 | SEE ALSO |
| 15 | find_object(E), to_array(E), to_int(E), to_string(E) |