ccebinger / SWPSoSe14

2 stars 1 forks source link

Check/Fix String/Integer distinction when pushing a constant #227

Closed jdettlaff closed 10 years ago

jdettlaff commented 10 years ago

This program fragment will result in output "-7" when it should be an error. Looks like "-2-" is successfully converted to an int when it should stay a string. ------[-5]----[-2-]----a-------o--#

jdettlaff commented 10 years ago

Done, we now push a java/lang/String if the input begins with an int, but ends with non-numeric characters.