Show in Frame No Frame
Up Previous Next Title Page Index Contents Search

6.3.8 Iterating over decompositions

The link of an object into a decomposition graph can be followed through the decompositions keyword. The related decomposition graph can be operated on in the loop, e.g.:
do decompositions 
{  '	'
   id
   newline 
}
makes a list of related decomposition graphs. A foreach loop could also be used within the loop: it would then operate on the decomposition graph, e.g. to iterate through its objects.

Note that a do decomposition loop’s contents are executed at most once: an object may only have one decomposition. The loop structure is however used to maintain the similarity with explosions.

Show in Frame No Frame
Up Previous Next Title Page Index Contents Search