POV-Ray : Newsgroups : povray.bugreports : String literals can only be 125 characters long : String literals can only be 125 characters long Server Time
7 Jun 2024 21:07:39 EDT (-0400)
  String literals can only be 125 characters long  
From: Samuel van Egmond
Date: 2 Jun 1999 20:57:38
Message: <3755c4f2.0@news.povray.org>
Hi,

Found another minor one, string literals don't seem to behave as the
documentation says:

   String literals begin with a double quote mark '"' which is followed by
up to 256 printable ASCII characters and are terminated by another double
quote mark.

This string literal contains 126 X's and fails while parsing with a string
too long error:
#declare
Test="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

By the way, the documentation doesn't state how long strings can become, you
can concat strings to over 256 characters, I tried to over 2,000,000 which
seems to work fine. Which also provides the workaround for the bug above.

Still using NT4 with the standard binaries.

Samuel


Post a reply to this message

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