--- Comment #19 from Stewart Gordon <> 2012-02-26 09:15:32 PST ---
(In reply to comment #17)
> That assumption is bogus, because this is almost never the case.  
> It makes contract programming basically unusable.  Such a strong 
> weakening of the 'in' contract should not be the default.

It depends on how you look at it.  A function can, by default, accept 
any arguments of the types specified.  I think the view taken is that 
the in contract supplements the parameter list, and the absence of an 
in contract with a given parameter list denotes an absence of further 
restrictions on what may be passed into the function.

> Don's proposal is to remove 'in' contract widening completely.  
> That does not make a lot of sense to me.

Indeed, it does seem that Don doesn't like contravariance.

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

Reply via email to