Export to GitHub

ironclad - issue #7

Potentially inaccurate dispatch


Posted on Jan 20, 2009 by Swift Camel

If a class C has a method named M, and its [metaclass or any of its base classes] BM has both the same name as C and a method named M, then calls to C.M may go to the wrong implementation.

This is just silly.

Comment #1

Posted on Feb 18, 2009 by Swift Camel

Wrote some tests, couldn't induce the problem; original implementation, while not pretty, is more robust than I thought. Tests remain.

Status: Invalid

Labels:
Type-Defect Priority-Medium