POV-Ray : Newsgroups : povray.bugreports : String literals can only be 125 characters long : Re: String literals can only be 125 characters long Server Time
18 Jun 2024 09:30:58 EDT (-0400)
  Re: String literals can only be 125 characters long  
From: Spider
Date: 3 Jun 1999 14:43:08
Message: <3756BE97.170380A@bahnhof.se>
Samuel van Egmond wrote:
> 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.
Not true..

Try to use the sub (hmm, substring, can't remember it's function now) to
print the string. even if a concat loop works, the print doesn't..

#declare S = "."
#declare N = 100000;
#declare M = 0;
#while(M<N)
  #declare S = concat(S,".")
  #declare M = M +1;
#end

#declare M = 0;
#while(M<N)
  #debug concat("\r",substr(S,0,M))
  #declare M = M +1;
#end


this should show it....

//Spider


Post a reply to this message

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