#getTokenName() behaviour

1 messages · Page 1 of 1 (latest)

lone jay
#

Is getTokenName() borked or is the wiki page for it incorrect?
getTokenName() seems to return the same results as getTokenNames(), but I was expecting something more like getName() going by the wiki. Note its wiki page also refers to mapRef in the parameters, but not in the usage.

#

It also seems to use the first argument as a delimiter similar to getTokenNames():

hearty verge
#

The code has been changed (looks about 5 years ago) that looks to have introduced a bug with how those functions work

rich hinge
#

Since nobody noticed it in five years let us just delete the function.

hidden ridge
#

Most people probably just use getName... if I use a function and get unexpected results, and there is a simple alternative, I just move to the alternative that works like I expect... assuming that the reason something isn't working is probably because I'm using it wrong, the wiki isn't updated with the correct usage, or MT is just weird sometimes.

It also doesn't help that some bugs won't be fixed because they've, "been around and might break someone's framework".

hidden ridge
lone jay