POV-Ray : Newsgroups : povray.general : return dictionary from macro [bug?] : Re: return dictionary from macro [bug?] Server Time
19 Apr 2024 13:40:28 EDT (-0400)
  Re: return dictionary from macro [bug?]  
From: jr
Date: 13 Apr 2021 13:35:00
Message: <web.6075d5d9d2107a6c79819d986cde94f1@news.povray.org>
hi,

ingo <ing### [at] tagpovrayorg> wrote:
> Not sure wether this was reported before.
>
> //-----------
> #version 3.8;
>
> #macro SomeThing(A)
>   #local RD = dictionary;
>   RD
> #end
>
> #declare SD = SomeThing(1);
> //-----------
>
> This crashes POV-Ray. Sometimes it asks to write a dump file.

here (unofficial alpha.10064268) it parses cleanly, with and without argument.
 can also assign key to 'SD'.  only warnings (assumed gamma, no objects).


> //-----------
> #version 3.8;
>
> #macro SomeThing(A)
>   #local RD = dictionary;
>   (RD)
> #end
>
> #declare SD = SomeThing(1);
> //------------
>
>
> This results in: test.pov" line 5: Parse Error: Expected 'numeric
> expression', dictionary
> identifier found instead

same here.


regards, jr.


Post a reply to this message

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