Water 5-Method and Class-Method
method next_method
Contract
Return typewob
No input parameters.
Parameter kindDefault valueType
Other keyed argumentsopt
Water Contract
<method next_method
  _other_keyed=opt=wob=ekind.code="_add_to_environment"/>
Calls the next method up the _parent hierarchy that has the same name. The call to next_method can occur anywhere in the method's body. By default, the arguments are automatically retrieved from the local environment including _subject . next_method also accepts keyed arguments so arguments can be explicitly passed in. <next_method arg1=10/> If you don't want to pass in an argument, then use the opt value for the argument. <next_method arg1=opt/>
Example:
<class foo gg=100>
   <method buy x=req y=2>
    <plus x y _subject.gg/>
   </>
   <class subfoo gg=20>
    <method buy x=1 y=2 z=4>
     <set x=8 zzz=true/>
     <vector
      <next_method y=opt/>  <!-- same as next line -->
      .<<do foo.buy/> x=x/>
      <next_method x=x.<plus 1/>/>
     />
    </>
   </>
  </>
foo.subfoo.<buy y=10/>
<v 30 30 39/>
next_method also works within make .
<class boat color=opt>
   <method make>
    .<set color="blue"/>
   </>
   <class canoe>
    <method make>
     <next_method/>
    </>
   </>
  </>
boat.<canoe/>
<boat.canoe  color="blue"/>