blob: 8f30a7fc37f19b33f6bc12ed072089cd397e6fec [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstra715ec202025-07-09 22:18:31 +02002 mixed * to_array(string)
3 mixed * to_array(bytes)
4 mixed * to_array(symbol)
5 mixed * to_array(quotedarray)
6 mixed * to_array(mixed *)
7 mixed * to_array(struct)
8 mixed * to_array(lpctype)
MG Mud User88f12472016-06-24 23:31:02 +02009
10 (int*)<value>
11
Zesstra715ec202025-07-09 22:18:31 +020012DESCRIPTION
13 Strings and symbols are converted to an int array that
14 consists of the args characters. Note that the string "12" will be
15 converted to the array ({ 33, 34 }), and not ({ 33, 34, 0 }) (the
16 LDMud versions prior to 3.3 returned the latter array).
Zesstra87785842019-11-27 19:59:07 +010017
Zesstra715ec202025-07-09 22:18:31 +020018 Byte sequences are converted into an array of these bytes.
MG Mud User88f12472016-06-24 23:31:02 +020019
Zesstra715ec202025-07-09 22:18:31 +020020 Quoted arrays are ``dequoted'', and arrays are left as they
21 are.
MG Mud User88f12472016-06-24 23:31:02 +020022
Zesstra715ec202025-07-09 22:18:31 +020023 Structs are converted into a normal array.
MG Mud User88f12472016-06-24 23:31:02 +020024
Zesstra715ec202025-07-09 22:18:31 +020025 Union lpc types are split into their union member types
26 (in no particular order).
MG Mud User88f12472016-06-24 23:31:02 +020027
Zesstra715ec202025-07-09 22:18:31 +020028BUGS
29 The cast notation only works if the precise type of <value>
30 is known at compile-time. This will not be fixed - use the
31 function form instead.
32
33HISTORY
34 LDMud 3.3.250 added structs to the accepted data types.
35
36SEE ALSO
37 to_int(E), to_string(E), to_struct(E)