Home | Notes | Languages | Programs | Homework |
Re: return values and errors |
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 -------------------------------------------------------------------------------
Home | Notes | Languages | Programs | Homework |