POV-Ray : Newsgroups : povray.beta-test : Dictionary 'reassign' : Dictionary 'reassign' Server Time
15 Jun 2021 08:50:25 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-2021 Persistence of Vision Raytracer Pty. Ltd.