juju2143 / walrusirc

Alternate client for OmnomIRC
http://codewalr.us/194
GNU General Public License v3.0
1 stars 1 forks source link

irc_vars #6

Open Sorunome opened 9 years ago

Sorunome commented 9 years ago

For the type column this is what the value must translate to:

0 - string 1 - int 2 - float 3 - object 4 - bool 5 - (associative) array

so in JS 3 and 5 would be the same

juju2143 commented 9 years ago

Thanks for the clarification. It's been fixed in 66a2c9dd871ae54520193a9c84b2f7af0707ca1d, however JavaScript isn't a typed language, you can't really cast the value so types 0, 1, 2 and 4 are the same and so are 3 and 5.

juju2143 commented 9 years ago

Wait, you can do toString, parseInt, parseFloat and stuff. Reopening. Until I add it, that is.