Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In other words: Defaults calculation is only successful if there is a dependency relation for the default providing methods such that these can never depend on pending-parameters with higher index than the index they are mapping to.


1) Fill in defaults in two passessteps:

Code Block
for i in 0..n-1
	p[i]:= default_i() // no arg, init PL

// fill in the parameter defaults with a single sweep through all default providing methods in order (updating the PL at each iteration)
for i in 0..n-1
	p[i]:= default_i(PL)

...