Melchior FRANZ wrote: > * Tim Moore -- Saturday 21 March 2009: >> Gene Buckle wrote: >>> What benefit does the compound property offer? > >> More concise syntax for aggregate values like colors, rotations, etc. > > Doesn't sound like a valid reason to me: > > SGVec3 vec = n->getVec3Value("/some/vector"); > The syntax is actually: Vec3d vec = n->getValue<Vec3d>() > vs. > > SGVec3 vec = getVec3(n->getNode("/some/vector", true)); That is not correct, because there is no explicit ordering of property node children. You need different functions, or some helper argument, for every property type that is vector-like -- colors, positions, normals, rotations, etc.
But in any case, I'm not worried so much about concise syntax in C++; I'm talking about the syntax of the XML files that will use the new properties. Tim ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel