POV-Ray : Newsgroups : povray.general : return dictionary from macro [bug?] : Re: return dictionary from macro [bug?] Server Time
26 Apr 2024 20:37:38 EDT (-0400)
  Re: return dictionary from macro [bug?]  
From: Thomas de Groot
Date: 14 Apr 2021 02:21:27
Message: <607689e7$1@news.povray.org>
Op 13/04/2021 om 19:17 schreef ingo:
> 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.
> 
> 
> //-----------
> #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
> 
> Ingo
> 

Using 3.8.0-alpha.10064268-+av691.msvc14w

First code works fine.
Second code crashes with identical parse error.

-- 
Thomas


Post a reply to this message

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