Variable assignment fickleness
Posted: Fri Jan 22, 2016 8:26 pm
Just a small tokenizer/parser bug, minor but took some head scratching as to why my app was kinda wonky.
Here is the stripped out code snippet demonstrating ( note spaces )
let foo="1"
print foo
let foo ="12"
print foo
let foo= "123"
print foo
let foo = "1234"
print foo
Output as follows
Nothing
Nothing
Nothing
1234
Seems like when no spaces either before and after '=' leaves var undefined.
Thanks guys for all your hard work. Gotta love the "OTA" aspect of this project
Here is the stripped out code snippet demonstrating ( note spaces )
let foo="1"
print foo
let foo ="12"
print foo
let foo= "123"
print foo
let foo = "1234"
print foo
Output as follows
Nothing
Nothing
Nothing
1234
Seems like when no spaces either before and after '=' leaves var undefined.
Thanks guys for all your hard work. Gotta love the "OTA" aspect of this project