--- Comment #16 from Don <> 2012-05-03 11:56:47 PDT ---
(In reply to comment #15)
> fizbuzzA(A a) {
>; //'s in contract is valid
> }
> If an instance of B is passed to fizbuzzA, then the will call,
> and either's in contract or's in contract must be valid.
> There is no error or invalid corner case here.
> I suspect that you think the contracts are checked based on static typing -
> they are not, they are done using the virtual type.

This is the issue. WHY are they done based on the virtual type?

Checking the contracts based on static typing would detect logical errors in
the calling code. Doing it based on the virtual type ignores latent bugs in
specific instances where they are harmless. I can't understand why that's a
good idea.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to