Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: #[unspecified return value]

New Message Reply About this list Date view Thread view Subject view Author view

Matthew Stone (mastone3@VT.EDU)
Thu, 15 Mar 2001 17:22:12 -0500


Message-ID:  <01031517221202.01087@hc6524f67>
Date:         Thu, 15 Mar 2001 17:22:12 -0500
From: Matthew Stone <mastone3@VT.EDU>
Subject:      Re: #[unspecified return value]

I was having a similar problem. I got "Unspecified return value" because I
was writing the string "Input is not a sentence" instead of just returning it
from the diagram-sentence function.

If you just return a string from diagram-sentence, you should not get parens
around it in the output:

(define (diagram-sentence lst)
        (cond
                ...
                (else "Input is not a sentence.")
        )
)

-Matt

On Thursday 15 March 2001 21:24, you wrote:
> 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


New Message Reply About this list Date view Thread view Subject view Author view

Home  |   Notes  |   Languages  |   Programs  |   Homework
copyright © 2001 Virginia Tech, ALL RIGHTS RESERVED
Class site maintained by Stephen H. Edwards <edwards@cs.vt.edu>