On 5/12/05, Hal Helms <[EMAIL PROTECTED]> wrote:
> Here's a common case: I have an object of type, Human, with an instance
> variable, "spouse", of type, Human. Now, if I call the getSpouse() method
> (that rightly advertises that it returns a Human) on a single person, what
> will I get?

I'd argue you should get a NOTMARRIED exception.

The precondition of calling getSpouse() should be that the Human.isMarried().
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to