POV-Ray : Newsgroups : povray.bugreports : Can't #undef a dict item that contains an array or dict : Re: Can't #undef a dict item that contains an array or dict Server Time
11 May 2024 03:00:25 EDT (-0400)
  Re: Can't #undef a dict item that contains an array or dict  
From: jr
Date: 24 Jun 2023 09:50:00
Message: <web.6496f3ecf8ae749fb49d80446cde94f1@news.povray.org>
hi,

"ingo" <nomail@nomail> wrote:
> ---%<------%<------%<---
> #version 3.8;
>
> #declare D = dictionary{
>   ["test"]:"test",
>   ["Arr"]: array{1,2},
>   ["Dict"]: dictionary{["1"]:1}  //parse error: Tried to free undefined symbol
> } ;
>
> #undef D["test"]
>
> #undef D["Arr"] //parse error: Tried to free undefined symbol
>
> #undef D["Dict"] //parse error: Tried to free undefined symbol
>
> ---%<------%<------%<---
>
> Win11, Persistence of Vision(tm) Ray Tracer Version
> 3.8.0-beta.2+gh7.msvc14.win64

I think that may be to do with not being allowed to address "a slice" of an
array, eg.
  #undef D["Arr"][0]
  #undef D["Arr"][1]
and
  #undef D["Dict"]["1"]

work "as advertised".


regards, jr.


Post a reply to this message

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