Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: return values and errors

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

Stephen Edwards (edwards@CS.VT.EDU)
Tue, 23 Oct 2001 13:13:59 -0400


Message-ID:  <3BD5A557.6ACD7FD8@cs.vt.edu>
Date:         Tue, 23 Oct 2001 13:13:59 -0400
From: Stephen Edwards <edwards@CS.VT.EDU>
Subject:      Re: return values and errors

> I would suggest instead using (display "Stack underflow") (newline) for
> the desired effect.

That is a good suggestion. Also, MIT Scheme understands a few escaped
character sequences within strings, such as \\, \", \n, \t, \f, and octal
escape sequences (only the first two are part of the Scheme standard,
though). For example, you can include \n in strings sent to display:

    (display "Stack underflow.\n")

                                -- Steve

--
Stephen Edwards            604 McBryde Hall          Dept. of Computer Science
e-mail      : edwards@cs.vt.edu           U.S. mail: Virginia Tech (VPI&SU)
office phone: (540)-231-5723                         Blacksburg, VA  24061-0106
-------------------------------------------------------------------------------


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>