RE: pass by reference
- Posted by bensler at mail.com Feb 20, 2002
- 487 views
if EU had a builtin VOID variable, it would solve BOTH of these. Variables would always initialize to VOID (not initialized). atom Test if Test = VOID then -- !! HOLD ON Variable not initialized yet! else ? Test end if Test = VOID -- uninitialize it You should also be allowed to use it for dumping unnessecary function results. I also suggested this about a year or so ago. Chris petelomax at blueyonder.co.uk wrote: > On Wed, 20 Feb 2002 15:41:23 +1100, Derek Parnell > <ddparnell at bigpond.com> wrote: > > >The other thing you might want to add is the ability to detect at run > >time, whether or not a > >variable has been initialized. > > OTOH.. > Suppose I am building result_set but then something semi-catastrophic > happens which invalidates everything about result_set, maybe we should > not even have been building result_set, we suddenly realise it is a > condition_set or something. > > Therefore we should uninitialise(result_set) so that if any other part > of the program tries to reference it, it should cause a trap (to be > fair, the interpereter would have to report different errors to avoid > confusion). > > Just a thought, doubt any milage in it, - might it have useful > application in a multi-threaded environment? > > Pete > >