Re: A question about certain language features

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu