Skip to content

Commit

Permalink
[mmd] clarify number of executions of a where-block, smash++
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Apr 23, 2010
1 parent b083ea1 commit bfe7d2a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/multi-dispatch.pod
Expand Up @@ -147,6 +147,13 @@ this to count how often a type check occurs:

=end programlisting

The first counter output is always C<0>, since the nominal types alone already
determine which candidate matches best, so the where-block is never executed.

The second output is at least C<1>. The compiler has to execute the
where-block at least once to check if the third candidate can be called, but
the specification doesn not require the minimal possible number of runs.

=for author

Verify Rakudo * behavior at press time.
Expand Down

0 comments on commit bfe7d2a

Please sign in to comment.