Article View: comp.sys.atari.st
Article #33634Laser C bug
From: A1 jeff giordano
Date: Wed, 17 Aug 1988 16:32
Date: Wed, 17 Aug 1988 16:32
21 lines
989 bytes
989 bytes
Actually I wouldn't call it a bug, but more a deficience in the
grammar. The following drove me nuts:
for(x=-1; x<=1; x++) { ... }
I wanted to loop from -1 to 1. However, the above is ambigous, it is an
old style declaration. I did not find out until I tried my prog on our
UNIX system. The UNIX cc gives:
Warning: oldstyle declaration on line xx.
Laser gives no such warning and actually takes whatever the previous
value was and drecrements it by one. then does the loop. not what i thought it
would do.
just thought I should let someone know.
Goeffrey Giordano
INET: jeff@polyof.poly.edu
UUCP: ...!iguana!polyof!jeff
Me?!? What do I know? I'm just a brain dead poly student.
Technical Details
Message-ID:
<365@polyof.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!yale!cmcl2!polyof!jeffShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!yale!cmcl2!polyof!jeff From: jeff@polyof.UUCP (A1 jeff giordano ) Newsgroups: comp.sys.atari.st Subject: Laser C bug Message-ID: <365@polyof.UUCP> Date: 17 Aug 88 16:32:27 GMT Organization: Polytechnic University, Farmingdale NY Lines: 21