InterMUD network news, information and discussion

Welcome to intermud.org
Friday, September 03 2010 @ 05:14 AM GMT+1


 Forum Index > Protocols > Intermud 3 New Topic Post Reply
 Is this a bug in the specification?
 |  Printable Version
raudhrskal
 August 12 2009 10:20 AM (Read 1336 times)  
Forum Newbie
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.


 
Profile Email
Quote
aidil
 August 12 2009 10:38 AM  
Forum Admin
Admin

Status: offline

Registered: 08/10/09
Posts: 13

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/
 
Profile Email Website
Quote
Content generated in: 0.13 seconds
New Topic Post Reply



 All times are GMT+1. The time is now 05:14 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content