Re: Local variables on TI92+


[Prev][Next][Index][Thread]

Re: Local variables on TI92+



At 11:44 PM 12/15/98 +0100, Miroslaw J. Wiechowski wrote:
>I noticed a rather strange behaviour of local variables in
>TI92 Basic. I mean strange because being a programmer I have
>never encountered something like this before.
>
>Let's assume we have the following program skeleton:
>
<
>
>The variable 'avar' used in 'subproc' is NOT the 'avar'
>defined in the 'mainprog' - contrary to what you would
>expect from a language allowing nested subprogram
>definitions!

If you read your manual it clearly (well, maybe not) states that local
variables are not shared between a program and its subs.

--
Bill Risher        Sparr      UIN:1952775    ._, . . .
Lorenai #44                   FON:9316484164 |_) o | |
Overlord n7hq      Decius                    |_) | | |
mailto://billr1@midsouth.net  FAX:9315526807 ^ ` ^ ^ ^


Follow-Ups: References: