On Thu, Feb 15, 2007 at 09:39:28AM -0800, [EMAIL PROTECTED] wrote: > +=item addstage(string stagename [, "option" => value, ... ]) > + > +Add a stage to the compilation process queue. Takes either a "before" or > +"after" named argument, which gives the relative ordering of the stage > +to be added. If "before" and "after" aren't specified, the new stage is > +inserted at the end of the queue. > + > +=cut > + > +.sub 'addstage' :method > + .param string stagename > + .param pmc adverbs :slurpy :named > + > + .local string position, target > + .local pmc stages > + stages = getattribute self, '@stages' > + > + $I0 = exists adverbs['before'] > + unless $I0 goto next_test > + position = 'before'
What happens if you add a stage with the same name as an existing stage? Is ambiguity acceptable? Nicholas Clark