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:28:20 EDT (-0400)
  Re: String literals can only be 125 characters long  
From: Nieminen Mika
Date: 3 Jun 1999 04:16:24
Message: <37562bc8.0@news.povray.org>
I still wonder why all these limitations in povray. String literals
limited to 256 characters (or 125 or whatever), nested #includes
limited to about 10, recursive #macros limited to something, number
of parameters to a #macro limited to some number...
  Why?
  It should be very easy to parse a string literal without length limitations
(compilers do). Just count the number of characters, allocate that amount
of memory and copy it there.
  Unlimited #macro recursion and nested #includes should also be possible
(although for some strange reason most compilers have also a nested
#include limit; but afaik there's no limit for recursive macros). Just
make a stack data structure.
  The parameters to a #macro could be a list.

  There's no limitation for number of objects, triangles in a mesh, etc.
Why there should be limitation in this kind of things?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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