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