Re: Integer skip....
>From: Robert Craig <rds at ATTCANADA.NET>
>Subject: Re: Integer skip....
>To: EUPHORIA at LISTSERV.MUOHIO.EDU
>
>Patrick Quist writes:
>> Is this a bug....
>
>> [File]
>> integer TEST
>
>> procedure testing()
>> integer TEST <-- Here doesn't come an error
>> TEST=1 <-- Here comes an error
>> end procedure
>
>> [EOF]
>
>On my machine this example gives a warning, not an error:
>
> Warning: local variable TEST in junk.ex is not used
>
>(where junk.ex is the name of the file)
>
>It's referring to the fact that the *local* (file-level) variable
>TEST, which is different from the *private* variable TEST
>declared inside testing(), is declared but not used for any purpose.
>
You're right!
I checked it my self and it didn't cause an error,
so I looked again, and what did I saw....
[File]
integer TEST
TEST=1
procedure TESTING()
integer TEST
if TEST=1 then --<-- This causes the Error
end if
end procedure
[EOF]
Don't tell me, let me guess...
In the procedure, TEST was not linked to a integer,
so TEST=[NOTHING].
If the 'IF' statement (or whatever you call it)
was outside the procedure, it worked, or
in the procedure was written TEST=1 (or something like that).
Am I Right?
(This is again proof that I always forget something....)
Sorry,
Bye,
PQ
QC
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
|
Not Categorized, Please Help
|
|