|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
---%<------%<------%<---
#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
ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"jr" <cre### [at] gmailcom> wrote:
> 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".
>
Thanks, yes, I had figured that out, but am not happy with it.
#undef D["Arr"][0]
#undef D["Arr"][1]
#ifdef(D["Arr"])
#debug "D_Arr\n"
#end
This prints "D_arr", so D["Arr"] isn't gone, it's just empty. Don't know how
harmful it is, if at all?
Thanks,
ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
This works around it:
#declare D["Arr"]=""
#undef D["Arr"]
ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |