POV-Ray : Newsgroups : povray.beta-test : Dictionary 'reassign' : Dictionary 'reassign' Server Time
26 Apr 2024 13:25:31 EDT (-0400)
  Dictionary 'reassign'  
From: ingo
Date: 4 Dec 2018 10:59:01
Message: <XnsA9AEACC41A9B2seed7@news.povray.org>
Don't know the proper word for what I do, but the code below fails. Should 
it? Can it be made not to fail?

#declare T = dictionary {
  ["Index"] : array[2]{"Base1", "Base2"},
  ["Base1"] : <1,2,3>,
  ["Base2"] : <0,1,2>
};

#declare Chain = T["Index"][0];
#declare Vec = T.Chain;

Parse Error: Cannot pass uninitialized identifier to non-optional LValue.

ingo


Post a reply to this message

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