Jon Berndt wrote:
In props.cxx I find this code:

  /**
   * Get a child node by position (*NOT* index).
   */
  SGPropertyNode * getChild (int position);


Can anyone differentiate for me the concept of "position" as contrasted to 
"index" in this
situation?

A position and index or not necessarily the same. The position is the index of the C array, but the index can me manually altered by specifying n="xx" as an XML attribute.

You could for instance define n="99" but it's array position could be 2.

Erik

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to