POV-Ray : Newsgroups : povray.off-topic : I'm in the mood for monads Server Time
30 Jul 2024 00:18:15 EDT (-0400)
  I'm in the mood for monads (Message 91 to 93 of 93)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Warp
Subject: Re: Living in a box
Date: 26 Apr 2012 08:14:16
Message: <4f993c18@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> No, there was FOR/NEXT. I don't think there was a WHILE.  The THEN was a 
> line number, not a statement.

  Right.

  Oh, and forget about indentation. Most "editors" back then had no such
concept. Following deeply nested loops and conditionals was a task in
itself...

-- 
                                                          - Warp


Post a reply to this message

From: Invisible
Subject: Re: Living in a box
Date: 26 Apr 2012 08:17:02
Message: <4f993cbe$1@news.povray.org>
On 26/04/2012 01:14 PM, Warp wrote:
> Darren New<dne### [at] sanrrcom>  wrote:
>> No, there was FOR/NEXT. I don't think there was a WHILE.  The THEN was a
>> line number, not a statement.
>
>    Right.
>
>    Oh, and forget about indentation. Most "editors" back then had no such
> concept. Following deeply nested loops and conditionals was a task in
> itself...

You can't nest IF statements at all.

In every BASIC dialect *I* saw, loop bodies are /automatically/ 
indented, and you can't turn this off.


Post a reply to this message

From: Invisible
Subject: Re: Living in a box
Date: 26 Apr 2012 08:18:36
Message: <4f993d1c$1@news.povray.org>
On 26/04/2012 01:07 PM, Francois Labreque wrote:

>> Almost every dialect had a strange DATA construct. A DATA statement is
>> followed by a comma-separated list of decimal numbers. The READ
>> statement fetches the next code into the specified variable. The RESTORE
>> command resets to the first DATA statement. If you want to write machine
>> code, you invariably have to write a BASIC program such as
>>
>> 10 FOR X = 1 TO 13
>> 20 READ D
>> 30 POKE (23874+X), D
>> 40 NEXT X
>> 50 DATA 45,84,27,45,95,13,75,65,42,84,13,10,59
>
> Think punch cards.

That's just scary.

But incidentally, most BASIC dialects had a way to read data off tape as 
well. Usually a READ$() function, or sometimes you had to play with CMD 
(change main device) so that your INPUT and PRINT commands now address a 
file rather than the screen...


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.