[ooc-compiler] dynamic array initialization with zero length
Brought to you by:
mva
|
From: texts w. <tex...@go...> - 2007-06-05 15:42:06
|
Hello ETH compilers doesn't allow dynamic arrays initialization with zero length. On the opposite, oo2c allows, and I want to find out, Is it supposed to be bug or a feature? I mean, for example ( I know about STRING type in oo2c) MODULE test; TYPE string = POINTER TO ARRAY OF CHAR; VAR s : string; BEGIN NEW (s, 0); END test. Personally I like this feature, if it is supposed to be the feature Thanks |