Re: [ooc-compiler] No warning with undefined array variables
Brought to you by:
mva
|
From: August K. <aug...@ya...> - 2006-07-28 13:21:10
|
--- Michael van Acken <mic...@gm...> skrev: > On 28/07/06, August Karlstrom <aug...@ya...> wrote: > > > If I use a variable of a primitive type before it's > > defined, I get a warning from oo2c. That is not the > > case with array variables. Why is that? > > Correct. The one was easy to do, the other not. Both arrays and records > are written piecemeal, and parts can therefore be defined or undefined. > So I decided to skip the warnings for them altogether. OK. Maybe a warning could be issued if such a variable is completely undefined. August |