Euphoria versus Java

new topic     » topic index » view thread      » older message » newer message

Rob:
I'm using a bit of Java now, and I noticed the following: while Java
routinely performs a subscript checking (unlike C/C++), it does not verify
if byte, short, integer or long variables overflow. So, if you have:
byte x = 127;
x = x + 1;
you end up with x = -128 instead of getting an overflow error.
Please correct me if there is a way of checking for this kind of error
(someone in the list may know more Java than I do ;)).
I think this is another point in favor of Euphoria that can be stressed.
Regards.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu