3 ms·
According to the language spec, it seems to be non-compliant to handle stack overflow that way (even if it's obviously a good feature): > In all integer arithm
by MaxBarraclough 8y ago
According to the language spec, it seems to be non-compliant to handle stack overflow that way (even if it's obviously a good feature):
> In all integer arithmetic operations, both overflow and underflow shall be ignored. The value returned when either overflow or underflow occurs is implementation defined.
http://www.forth.org/svfig/Win32Forth/DPANS94.txt http://www.forth.org/svfig/Win32Forth/DPANS94.txt
- upofadown 8y agoI think they mean arithmetic overflow and underflow.
- MaxBarraclough 8y agoOops! Second attempt: looks like they single out "stack underflow" as implementation-defined behaviour: > A system shall document the system action taken upon each of the general or specific ambiguous conditions identified in this Standard. So, essentially the opposite of what I said.