Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: return values and errors

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

Abe Corson (acorson@VT.EDU)
Tue, 23 Oct 2001 12:33:48 -0700


Message-ID:  <3.0.6.32.20011023123348.009a44c0@mail.vt.edu>
Date:         Tue, 23 Oct 2001 12:33:48 -0700
From: Abe Corson <acorson@VT.EDU>
Subject:      Re: return values and errors

I just wanted to point out one thing, since your question was already
answered.

At 12:10 PM 10/23/2001 -0400, you wrote:
> so I say... (null? stack (write-line "Stack underflow"))

This is bad because it will print:

"Stack Underflow"

Neither (write) nor (write-line) seem to support strings very well. I
would suggest instead using (display "Stack underflow") (newline) for the
desired effect, instead.

Anyway, good luck.

Abe Corson


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>