POV-Ray : Newsgroups : povray.bugreports : substr( ) Doc Error Server Time
22 Nov 2024 16:10:49 EST (-0500)
  substr( ) Doc Error (Message 1 to 2 of 2)  
From: Philip Sewell
Subject: substr( ) Doc Error
Date: 16 May 1999 04:07:30
Message: <373E6EA4.51F0D6C9@gte.net>
POV-Ray Version 3.1e.watcom.win32 on Windows NT 4.0 SP 4.

The String Functions topic in the POV-Ray 3.1 Documentation help file
includes the sentence:

>  For example substr("ABCDEFGHI",4,2) evaluates to the string "EF".

This is not so.  It evaluates to "DE".  The distinction is important
because it establishes the meaning of the word "position" in the
write-up.

Similarly, the next sentence,

>  If P+L>strlen(S) an error occurs.

should read "If P+L>=strlen(S) ..."


Post a reply to this message

From: Philip Sewell
Subject: Re: substr( ) Doc Error
Date: 16 May 1999 04:17:50
Message: <373E711B.A0C2358A@gte.net>
Philip Sewell wrote:

> POV-Ray Version 3.1e.watcom.win32 on Windows NT 4.0 SP 4.
>
> The String Functions topic in the POV-Ray 3.1 Documentation help file
> includes the sentence:
>
> >  For example substr("ABCDEFGHI",4,2) evaluates to the string "EF".
>
> This is not so.  It evaluates to "DE".  The distinction is important
> because it establishes the meaning of the word "position" in the
> write-up.

This next comment is in error.  The help file text is fine as is.

>
>
> Similarly, the next sentence,
>
> >  If P+L>strlen(S) an error occurs.
>
> should read "If P+L>=strlen(S) ..."


Post a reply to this message

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