

(Like $ORDER, $QUERY accepts a null string to designate the first subscript in an array.) The first WRITE command outputs the value of the first node found. For more information, refer to Indirection in Using ObjectScript. The first SET command uses $QUERY with subscript indirection to initialize the global reference to the first existing node that contains data.
Indirection in frozen code#
Start READ !, "Array name: ", ary QUIT : ary = "" SET queryary = $QUERY ( ary ( "" ) ) WRITE !, queryary FOR WRITE !, "Finished." QUIT Copy code to clipboard Instead of requiring 23 lines, however, it requires only six and is not restricted as to the number of levels it can handle. The code performs the same operation as the code shown in the example under the $ORDER function. It can accommodate arrays with any number of levels.

This example presents a generalized routine for outputting the data values for all the nodes in a user-specified array.

The ZBREAK command cannot specify the target argument as a watchpoint. If the value returned by $QUERY evaluation is the null string (""), the target value remains unchanged. If you wish to specify a target variable, you must specify a direction argument. You can optionally specify a target variable. If you wish to specify a direction, an argument value of 1 will traverse the array forward, a value of -1 will traverse the array backward. If no direction is specified, the default direction is forward. If you specify reference without specifying subscripts, $QUERY returns the first defined node in the array. The returned global reference can be at the same level, a lower level, or a higher level as the level specified in the reference argument. Attempting to use $QUERY on a non-multidimensional object property results in an error. It cannot be a non-multidimensional object property. This argument can be a multidimensional object property. This argument must evaluate to a public variable or a global. Copy link to this section Arguments reference If no such node exists, $QUERY returns the null string.
Indirection in frozen full#
$QUERY performs a physical scan of a public local or global array it returns the full reference, name and subscripts, of the defined node next in sequence to the specified array node. For example, if reference is ^a(1) and $QUERY returns ^a(2), then target is the value of ^a(2). Optional - Returns the current data value of the reference returned as the result of $QUERY evaluation. Optional - The direction to traverse the array. You cannot specify a simple object property as reference you can specify a multidimensional property as reference with the syntax obj.property. Send us feedback.Copy link to this section Arguments ArgumentĪ reference that evaluates to the name (and optionally subscripts) of a public local or global variable. These example sentences are selected automatically from various online news sources to reflect current usage of the word 'indirection.' Views expressed in the examples do not represent the opinion of Merriam-Webster or its editors.
Indirection in frozen movie#
Mark Feeney,, 26 June 2019 This is, of course, an indirect evocation of Donald Trump in a movie that doesn’t have much truck with indirection. 2020 In fairness, elaboration could detract from Magid’s mode of storytelling, which relies a lot on indirection and leaving things unsaid. 2020 Multiple layers of obfuscation and indirection are standard in this criminal realm. 2020 The nearly plotless story snares us through indirection to produce a pleasingly dark collage.Ĭlaude Peck, Star Tribune, 23 Oct. 2021 The letter is included in the report and is an exquisite piece of clerical indirection and equivocation. 2022 Antrim’s writing here is brilliant in its indirection and compression.ĭavid L. Matthew Bevis, Harper’s Magazine , 16 Feb. Recent Examples on the Web Dutiful sons often revere their fathers for their instruction in the ways of the world-by direction and indirection, sterling example and train wreck.Įdward Kosner, WSJ, This might suggest that a truer study of the psyche and its place in the world could be conducted via indirection or obliquity.
