Home  |   Notes  |   Languages  |   Programs  |   Homework

return values and errors

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

§ídësmâçk (csides@VT.EDU)
Tue, 23 Oct 2001 12:10:59 -0400


Message-ID:  <4.3.0.20011023120804.00b457b8@mail.vt.edu>
Date:         Tue, 23 Oct 2001 12:10:59 -0400
From: §ídësmâçk <csides@VT.EDU>
Subject:      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>