uliwitness / Stacksmith

An intuitive software erector kit targeted at people new to programming, but with enough potential to stay useful once they've learned, inspired by HyperCard.
http://stacksmith.org
128 stars 13 forks source link

Implementations of CanGetAsNumber() and CanGetAsInteger() for string types don't account for negative numbers #90

Closed uliwitness closed 7 years ago

uliwitness commented 7 years ago

All the LEOValueType structs that implement these two methods for string-like types loop over the characters and verify numbers, and maybe a decimal point, but don't allow a '-' at the start of the number.