@@ -510,17 +510,23 @@ or more repeats, and all other characters are literal values.
510510Use the following algorithm to resolve a parameter reference:
511511
512512 1 . Match the leading symbol as the key
513- 2 . Look up the key in the parameter context (described below) to get the current value.
513+ 2 . If the key is the special value 'null' then the
514+ value of the parameter reference is 'null'. If the key is 'null' it must be the only symbol in the parameter reference.
515+ 3 . Look up the key in the parameter context (described below) to get the current value.
514516 It is an error if the key is not found in the parameter context.
515- 3 . If there are no subsequent segments, terminate and return current value
516- 4 . Else, match the next segment
517- 5 . Extract the symbol, string, or index from the segment as the key
518- 6 . Look up the key in current value and assign as new current value. If
519- the key is a symbol or string, the current value must be an object.
520- If the key is an index, the current value must be an array or string.
521- It is an error if the key does not match the required type, or the key is not found or out
522- of range.
523- 7 . Repeat steps 3-6
517+ 4 . If there are no subsequent segments, terminate and return current value
518+ 5 . Else, match the next segment
519+ 6 . Extract the symbol, string, or index from the segment as the key
520+ 7 . Look up the key in current value and assign as new current value.
521+ 1 . If the key is a symbol or string, the current value must be an object.
522+ 2 . If the key is an index, the current value must be an array or string.
523+ 3 . If the next key is the last key and it has the special value 'length' and
524+ the current value is an array, the value of the parameter reference is the
525+ length of the array. If the value 'length' is encountered in other contexts, normal
526+ evaluation rules apply.
527+ 4 . It is an error if the key does not match the required type, or the key is not found or out
528+ of range.
529+ 8 . Repeat steps 3-8
524530
525531The root namespace is the parameter context. The following parameters must
526532be provided:
0 commit comments