David Torbert (dtorbert@VT.EDU)
Sat, 12 Feb 2000 17:19:35 -0500
Message-ID: <38A5DC77.80F978D5@vt.edu> Date: Sat, 12 Feb 2000 17:19:35 -0500 From: David Torbert <dtorbert@VT.EDU> Subject: [CS3304_1381] Returning from a function/proc
Is it possible to return from a Pascal function other than by getting to
the end of it?
IE, in C++, if you want to get out of dodge if your input is invalid,
you do something like this:
void SomeFunc(CSomeType* pBlah)
if (NULL == pBlah)
// Other processing here
Is there a way to do this other than having a nested if/then/else for
every way you could want to leave a function?
This archive was generated by hypermail 2.0b3 on Sat Feb 12 2000 - 17:29:30 EST