Subject: Is this a bug in the specification?

Posted on: August 12 2009 @ 10:20 AM
By: raudhrskal

Content:

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.



Replies:

Re: Is this a bug in the specification?

Posted on: August 12 2009 @ 10:38 AM
By: aidil

Content:

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.


intermud.org - Forum
http://www.intermud.org/forum/viewtopic.php?showtopic=6