POV-Ray : Newsgroups : povray.pov4.discussion.general : Semicolon required for successful array definition in macro Server Time
9 May 2024 07:27:20 EDT (-0400)
  Semicolon required for successful array definition in macro (Message 1 to 1 of 1)  
From: Bald Eagle
Subject: Semicolon required for successful array definition in macro
Date: 21 Nov 2023 21:15:00
Message: <web.655d63508adcd7d21f9dae3025979125@news.povray.org>
So, I'm coding some macros to experiment with some recent discussion topics (as
a break from the many many functions, etc in the wood texture project)

and I needed an array of triangle vertices.

So I have a 2D array, number of triangles and 3 vertices each.
Then I have the name of the array as a standalone line at the end of the macro
to "export" the array to the global environment when the assignment is made.

POV-Ray doesn't like that, and thinks the array name hasn't been declared yet.
When I end the array declaration with a semicolon, suddenly it's alright.

Seems something is wonky there in the parser (3.8).

 - BW


Post a reply to this message

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