Re: A question about certain language features
- Posted by David Cuny <dcuny at LANSET.COM> Feb 15, 2002
- 866 views
Robert wrote:
> And if a variable is used, but not assigned a value anywhere...
> ...
> Warning: private variable x in foo() is never assigned a value
Yes. But I was more interested in a case like this:
integer i
if rand(10) > 5 then
i = 100
else
-- this will cause an error
end if
? i
and getting:
Warning: private variable i might never be assigned.
-- David Cuny

