mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu May 16, 2013 4:16 am Post subject: |
|
|
registerSymbol('test',1234)
second time:
registerSymbol('test',1234)
> Error:test already exists
But you can use this pair:
unregisterSymbol('test')
registerSymbol('test',1234)
unregistersymbol doesn't throw any errors, can be used multiple times.
If you don't want to use pairs, you can alter registerSymbol function like this, add at the beginning:
| Code: | if oldRegisterSymbol==nil then oldRegisterSymbol = registerSymbol end
registerSymbol = function (a,b,c) unregisterSymbol(a); oldRegisterSymbol(a,b,c) end
|
_________________
|
|