RE: Uninitialized Variables
- Posted by Rod Jackson <rodjackson_x at hotmail.com> Mar 24, 2002
- 467 views
Derek Parnell wrote: <snip> > c) Unfortunatly, INF is a valid value in its own right, and can be used > in > situations other than checking for uninitialized variables. > > The problem really needs to be addressed inside the core Eu interpreter. > It > knows if a variable is truely initialized or not. The changes are > simple. > - Allow uninitialized variables to be passed as parameters. > - Create a built-in way of testing a variable's initialization state. > > and possibly > > - Create a built-in way of setting a variable's state back to > uninitialized. > > This will not break any existing code, and will enable people to write > more > robust code. But uninitialized variables are caught at "compile" time. Why would you want to wait until runtime to catch them? What would be the point? Rod