TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: BRIAN MCLAUGHLIN
from: RICK PEDLEY
date: 1996-02-18 21:43:00
subject: Compiler quirk?

-=> Quoting Brian Mclaughlin to All <=-
 BM> But, instead, the compiler compiles it as the equivalent of this...
 BM> FOR test% = 1 TO 3
 BM> IF test% = 3 THEN
 BM> test% = -333
 BM> test% = 999
 BM> END IF
 BM> PRINT test%
 BM> NEXT test%
 BM> Am I just all wet, or am I onto something here? How do others think
 BM> the compiler should behave in this instance? Inquiring minds want to
 BM> know.
That looks normal to me. When an IF evaluates to false, statements
following in the same line are not executed unless part of an ELSE
statement. That's what most versions of BASIC do.
coffeerp@adan.kingston.net  Û] COFFEE MUG SOFTWARE Û]
___ Blue Wave/QWK v2.20
--- InterEcho 1.16
---------------
* Origin: CrossRoads * Kingston, Ont. (1:249/1)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.