|
Welcome to intermud.org Tuesday, February 09 2010 @ 09:50 AM GMT+1
| raudhrskal |
 |
August 12 2009 10:20 AM (Read 621 times) |
|
|

Newbie
Status: offline
Registered: 08/12/09
Posts: 1
|
In the locally hosted mudmode specification, you have this fragment:
PHP Formatted Code
pair
string:value
From my (limited) experience, mappings are value:value... key can be any primitive type, including object. Not sure if I ever tried to use a complex type.
|
| |
|
|
| aidil |
 |
August 12 2009 10:38 AM |
|
|

Admin
Status: offline
Registered: 08/10/09
Posts: 11
|
Technically, you are correct, the key in an LPC mapping can be of any type, tho arrays and mappings tend to not work as you'd expect.
For I3, only strings are used as keys in a mapping, and it is safe to assume there are implementations (esp. non native ones) that will not handle non string keys.
I will update the mudmode specification to mention this.
visit Way of the Force: http://wotf.org/
|
| |
|
|
| Content generated in: 0.08 seconds |
|
|