在 Oct 26, 2006 10:26 AM 時,TSa 寫到:
I figure that
http://svn.openfoundry.org/pugs/docs/notes/multi_method_dispatch/ mmd-draft.txt
hasn't made it into S06 yet. So what is the current state of affairs?

The original plan was to have Larry review it in Brazil and check it in along with an implementation (or two), but that may have to wait a bit now that Larry can't make it to Brazil...

Could someone explain me the voting mechanism mentioned in the
document? I get that it works from left to right and compares
the narrowness of types of the competing targets at that position.
But what information is recorded on the score cards and how is
that finally used in selecting the dispatch target?

A variant's score cards only records two Boolean values for each variant: "voting" and
"qualified".

The final resolution is by consensus: After all the positions are processed, if all variants consider a single unique variant to be qualified, it is chosen. Otherwise an
ambiguity error is raised.

Thanks,
Audrey

Reply via email to