3 ms·
The ocaml one is very annoying because the bytecode interpreter reliably evaluates arguments left-to-right but when you compile to native code it reliably eval
by ufo 10y ago
The ocaml one is very annoying because the bytecode interpreter reliably evaluates arguments left-to-right but when you compile to native code it reliably evaluates right-to-left (or the other way around, I don't remember).
- deleted 10y ago[deleted]
- afrisch 10y agoI don't think so. Both bytecode and native evaluate right-to-left.
- ufo 10y agoI swear that I remember having programs that could behave differently in the bytecode and native compiler. Perhaps I'm remembering an older version of the compiler or another order-of-evaluation issue other than function parameters?