Re: A question about certain language features

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

David Cuny writes:
> Euphoria does check to make sure that "i" is actually set to some value 
> somewhere in the routine. If you wrote:
>
>   integer i, j
>   if rand(1) then
>      i = 1
>   end if
>
> you'll get a warning that "j" is not used.

And if a variable is used, but not assigned a value anywhere...

procedure foo()
    integer x

    ? x
end procedure

Warning: private variable x in foo() is never assigned a value

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu