POV-Ray : Newsgroups : povray.off-topic : Mysteries of the universe : Re: Mysteries of the universe Server Time
6 Sep 2024 15:19:07 EDT (-0400)
  Re: Mysteries of the universe  
From: Orchid XP v8
Date: 3 Sep 2009 15:56:23
Message: <4aa01f67$1@news.povray.org>
>> 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...)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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