POV-Ray : Newsgroups : povray.beta-test : strange concatenation rules : strange concatenation rules Server Time
30 Jul 2024 22:27:31 EDT (-0400)
  strange concatenation rules  
From:
Date: 24 Sep 2001 05:21:17
Message: <h9utqt0r7aer5md5md2ge3kpu39131k51e@4ax.com>
POV3.5b4 on NT4 PII233 128MB

Please parse below and look at the output where it stops and what is
the output. I didn't found anything within 6.1.7.1 and 6.1.7.3 what
could explain this 

//-----
  #declare String=concat("1","2","3")
  #warning String

  #declare String=concat("1" "2" "3")
  #warning String

  #declare String=concat("1" "2","3")
  #warning String

  #declare String=concat("1""2""3")
  #warning String

  #declare String=concat("1" "2")
  #warning String
//-----

to compare result here is my output

  File: C:\tests\test.pov  Line: 4
  Warning: 123
  File: C:\tests\test.pov  Line: 7
  Warning: 13
  File: C:\tests\test.pov  Line: 10
  Warning: 13
  File: C:\tests\test.pov  Line: 13
  Warning: 13

  File: C:\tests\test.pov  Line: 15

  #declare String=concat("1" "2") <----ERROR

  Parse Error: Expected 'string expression', ) found instead

ABX


Post a reply to this message

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