Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: return values and errors

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

David Tuell (dtuell@VT.EDU)
Tue, 23 Oct 2001 12:10:57 -0400


Message-ID:  <000701c15bdd$4c799120$cd4e52c6@y2sky>
Date:         Tue, 23 Oct 2001 12:10:57 -0400
From: David Tuell <dtuell@VT.EDU>
Subject:      Re: return values and errors

Try making a function call as the return value in that element of the cond
statement, like have a function that writes the output then returns the
variable list

----- Original Message -----
From: "§ídësmâçk" <csides@VT.EDU>
To: <CS3304_91312@LISTSERV.VT.EDU>
Sent: Tuesday, October 23, 2001 12:10 PM
Subject: [CS3304_91312] return values and errors

> I'm confused about this return value business. For example...
> I want to say if the stack is null, then there has been a stack underflow.
> so I say... (null? stack (write-line "Stack underflow"))
> But I need to have a return type as the var list?
> I dont know how I would return the varlist AND print out the error.
> suggestions?
> -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>