From: Sean O'Dell Date: 2003-11-22T09:17:44+09:00 Subject: Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types) ) On Friday 21 November 2003 03:52 pm, Greg McIntyre wrote: > "Sean O'Dell" wrote: > > So, it's really a contractual thing, not so much a logic thing. > > Doesn't that spread logic around anyway, though? I'm wondering what > > happens when the actual method needs a parameter to pass another test, > > does the programmer have to go open another file and assert the test > > there? It still feels like spreading logic around that really belongs > > in one place. > > Yes, but arguably you're changing the interface to the method/class at > that point so it's analagous to > - opening up a separate .h file and changing it > - going to the top of the file (or wherever) and altering the types in > an interface declaration Except you don't open .h files to add logic, only to change declarations (presumably). I rather prefer the way Delphi does it, but still, it doesn't happen often. I guess since checking parameter values wouldn't happen often, it would the same thing or close. Sean O'Dell