Difference between revisions of "SHIP:Data Types:Node"

From Serious Documentation
Jump to: navigation, search
Line 1: Line 1:
*'''[[SHIP:Node|Node Home]]'''
+
== See Also ==
*'''[[SHIP:Data_Types|All Data Types]]'''
+
*[[SHIP:Node|Node Home]]
 +
*[[SHIP:Data_Types|All Data Types]]
 +
 
 +
== {{DataType|Reference}} ==
 
<onlyinclude>{{DataTypeTableStart|}}
 
<onlyinclude>{{DataTypeTableStart|}}
|{{DataType|Reference}}||Static reference to a [[SHIP:Node|node]] or one of its properties.
+
|{{DataType|Reference}}||Reference to a [[SHIP:Node|node]] or one of its properties.
 
|}
 
|}
 
Properties and parameters that are of type {{DataType|Reference}} must receive a value that is known at SHIPTide time, not a value that is dynamically assigned at run time. For example, the following statement will fail:
 
Properties and parameters that are of type {{DataType|Reference}} must receive a value that is known at SHIPTide time, not a value that is dynamically assigned at run time. For example, the following statement will fail:
 
 
<code>
 
<code>
 
  [[SHIP:Sail:getChildIndex|getChildIndex]]([[SHIP:Sail:getChild|getChild]](myParent, index));    // fails instead of returning index
 
  [[SHIP:Sail:getChildIndex|getChildIndex]]([[SHIP:Sail:getChild|getChild]](myParent, index));    // fails instead of returning index

Revision as of 06:13, 19 April 2014

See Also

Reference

Data Type Description
Reference Reference to a node or one of its properties.

Properties and parameters that are of type Reference must receive a value that is known at SHIPTide time, not a value that is dynamically assigned at run time. For example, the following statement will fail:

getChildIndex(getChild(myParent, index));    // fails instead of returning index

The above code is illegal since getChildIndex expects a Reference to a node but getChild returns the node itself.