Erik Hofman wrote: > > Mathias Fröhlich wrote: >> Catching up with an already heated up discussion. >> >> IMO: >> Tim should go on and include arrays into the property system. >> I even believe that aggregates and more sophisticated types will be >> something >> good to have. > > There is still something that isn't addressed with his proposal. > At this time all types can be converted to all other types. It would be > easy to convert any float/doubles or integers to a one element array, > but how would a multi-element array be converted to a float or integer? > My best guess is returning a NaN which is not very elegant (and which > doesn't work for integers). > Another way is to just ignore the node if a non-compatible type is > requested. My proposal, and code, returns a "default value" in this case. The default value is 0 for scalar types, the empty string, or a vector of zeros for vector types. > > Maybe it's a good idea to let Tim include the code to support > array-nodes without using it anywhere yet (or provide a patch). That way > we can look (and feel) how it is going to work. do some small tests > ourselves and make decisions based on our own experience rather than on > theoretical assumptions. As I mentioned in my proposal, the changes are available in git://repo.or.cz/simgear/timoore.git and git://repo.or.cz/flightgear/timoore.git in the topic/property branch.
Tim > > Erik > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Flightgear-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

