[ooc-compiler] Language limitation or a compiler bug?
Brought to you by:
mva
|
From: Alexander I. <aj...@ya...> - 2011-08-03 05:06:39
|
Hello! I found that it's impossible to do "CONST x = SYSTEM.VAL (SET, 10)", because "10" is 1 byte, and SET is 4 bytes. And if I do "CONST x = SYSTEM.VAL (SET, LONG(LONG(10)))", then suddenly I get "expression is not constant error". Somehow "10" is a constant, and "LONG(LONG(10))" is not. Is this a compiler bug or an intentional behaviour? ---=====--- Alexander |