Mail Archives: djgpp/1997/08/29/10:19:22
"Michael L. Smith" (mlsmith AT ktis DOT net) writes:
> C Version:
>
> int i;
> int x;
>
> main()
> {
> for(i=1; i<1000000000; i++) x=i;
> }
>
> Basic Version: (identical version used for both OmniBasic and Power
> Basic)
>
> dim i as long
> dim x as long
>
> for i=1 to 1000000000
> x=i
> next i
Sounds like a brain-damaged BASIC to me. It turns a loop meant to go from
1 to 1000000000 into a loop that goes from 1 to 999999999! :-)
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -