www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/29/10:19:22

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Announcement: OmniBasic Version 1.27
Date: 29 Aug 1997 07:18:05 GMT
Organization: The National Capital FreeNet
Lines: 31
Message-ID: <5u5t3d$7pk@freenet-news.carleton.ca>
References: <5so1im$s0_006 AT mlsmith DOT ktis DOT net> <5tdvas$o4_008 AT mlsmith DOT ktis DOT net> <340506ED DOT 6047 AT ktis DOT net>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet5.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019