POV-Ray : Newsgroups : povray.off-topic : Mysteries of the universe : Re: Mysteries of the universe Server Time
6 Sep 2024 15:22:03 EDT (-0400)
  Re: Mysteries of the universe  
From: Jim Henderson
Date: 3 Sep 2009 16:01:30
Message: <4aa0209a$1@news.povray.org>
On Thu, 03 Sep 2009 20:56:30 +0100, Orchid XP v8 wrote:

>>> As *I* remember, Pascal arrays start at whatever index you tell them
>>> to start at. (E.g, you can make the first index be 17 if you want...)
>>>
>>> VAR stuff : ARRAY [17..21] OF INT;
>> 
>> I was thinking positions for a string.  In Pascal, using the string
>> "abcdef", position 1 is "a".  In C, it's position 0.
> 
> Probably.
> 
> IIRC, in Turbo Pascal, position 0 is the length. (And since it's a
> single byte, no strings longer than 255 characters...)

Yep, Turbo Pascal stored the length rather than using the C method of 
null-terminating the string.

Jim


Post a reply to this message

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