mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #01493
Re: [Bug 765122] [NEW] large numerical arguments for raiseEvent(eventName, argumentOne) are converted to 0
This isn't really a bug. As I wanted to avoid a second parameter per
argument that describes the data type as a descriptive argument for each
parameter is too inconvenient imho. If you want to force a string you
need to prefix the number somehow. The function tests if the parameter
is a correct Lua number and if it's not, it tests if it's a valid Lua
string. In your case the number is too large, but Lua still identifies
it as a number.
Am 18.04.2011 22:06, schrieb Matthew Blanski:
> Public bug reported:
>
> Mudlet 1.1.0 built: march 8, 2010
> Microsoft Windows XP Professional Version 2002 Service Pack 3
>
> Large numerical arguments for raiseEvent(eventName, argumentOne) are
> converted to 0 where argumentOne is a large number. For instance
> raiseEvent("experienceCapture", "1207269166") passes
> "experienceCapture","0"
>
> ** Affects: mudlet
> Importance: Undecided
> Status: New
>
>
> ** Tags: raiseevent
>
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/765122
Title:
large numerical arguments for raiseEvent(eventName, argumentOne) are
converted to 0
Status in Mudlet the MUD client:
New
Bug description:
Mudlet 1.1.0 built: march 8, 2010
Microsoft Windows XP Professional Version 2002 Service Pack 3
Large numerical arguments for raiseEvent(eventName, argumentOne) are
converted to 0 where argumentOne is a large number. For instance
raiseEvent("experienceCapture", "1207269166") passes
"experienceCapture","0"
References