Home | Notes | Languages | Programs | Homework |
Re: #[unspecified return value] |
Ago Sukanovic (asukanov@VT.EDU)
Thu, 15 Mar 2001 22:00:23 -0500
Message-ID: <000b01c0adc5$3f33dd20$0201a8c0@asshole> Date: Thu, 15 Mar 2001 22:00:23 -0500 From: Ago Sukanovic <asukanov@VT.EDU> Subject: Re: #[unspecified return value]
My two cents:
(define (isnull list1)
(cond
((null? list1) "This is an empty list.")
(else (...))
)
)
If you run this with:
1 ] (isnull '())
you'd get this:
"This is an empty list."
I don't think you are supposed to write to standard output anyway, just have
your diagram-sentence function return an atom stating the error.
----- Original Message -----
From: Christopher Shaw <chshaw4@VT.EDU>
To: <CS3304_11374@LISTSERV.VT.EDU>
Sent: Thursday, March 15, 2001 9:24 PM
Subject: [CS3304_11374] #[unspecified return value]
> ok... I have the program working... the only problem I have is formatting
> the error messages... If I write out the correct error message, I get a
> message after it saying #[unspecified return value]. I can output the
> message in parentheses and get no error. As it stands now I have the
error
> messages printing out, but they dont match the expected output letter for
> letter, so I am missing the points for the lines that have errors. If
> anyone knows how to correct this, or why its happening I would appreciate
> any help.
>
> thanks,
> Chris
Home | Notes | Languages | Programs | Homework |