|
|
I'm trying to create a mixed array with vectors by using macro calls to define
the point locations.
POV-Ray (qtpovray 3.8) squawks with "Parse Error: Expected 'array initializer
element', macro identifier found instead"
Is this something we can't do? Seemed weird.
#declare Array =
array mixed [2][5] {
{"text", Macro(0.00, 0.90), ....
Post a reply to this message
|
|
|
|
hi,
"Bald Eagle" <cre### [at] netscapenet> wrote:
> I'm trying to create a mixed array with vectors by using macro calls to define
> the point locations.
>
> POV-Ray (qtpovray 3.8) squawks with "Parse Error: Expected 'array initializer
> element', macro identifier found instead"
>
> Is this something we can't do? Seemed weird.
>
> #declare Array =
> array mixed [2][5] {
> {"text", Macro(0.00, 0.90), ....
works, did same recently. try putting the call into parentheses (force another
round of expr eval), ie:
array mixed [2][5] {
{"text", (Macro(0.00, 0.90)), ....
regards, jr.
Post a reply to this message
|
|
|
|
On 02-Aug-21 00:38, jr wrote:
> works, did same recently. try putting the call into parentheses (force another
> round of expr eval), ie:
>
> array mixed [2][5] {
> {"text", (Macro(0.00, 0.90)), ....
I'd put the extra parenthesis in the Macro body instead of the caller,
less chances to forget when using.
Post a reply to this message
|
|