From: Barry K. <bk...@in...> - 2002-11-19 17:25:08
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body> Nat Pryce wrote:<br> <blockquote type="cite" cite="mid...@ba..."> <pre wrap=""> </pre> <blockquote type="cite"> <blockquote type="cite"> <pre wrap=""> I'm confused about this: * MockCall *is* part of the public interface. </pre> </blockquote> <pre wrap="">Adding a method to MockCall will not break existing code. (But it will make creating anonymous inners harder, as you point out below.) </pre> </blockquote> <pre wrap=""><!----> It will break all code that defines classes that implement MockCall.</pre> </blockquote> <br> Whoops. I was thinking MockCall was a class.<br> <blockquote type="cite" cite="mid...@ba..."> <blockquote type="cite"> <blockquote type="cite"> <pre wrap="">* Constraints do not specify the expected argument types, so I don't see how querying for a list of constraints will help you overload on argument types. </pre> </blockquote> <pre wrap="">Not the constraints, but the Class of the object being constrained. </pre> </blockquote> <pre wrap=""><!----> The Constraints do not have any knowledge of the class of the object being constraint, except for the IsInstanceOf constraint, which is a special case.</pre> </blockquote> But they have the object being constrained. The object knows its Class. Am I missing something?<br> <br> -bk<br> <br> </body> </html> |