Re: How to return from a function

From: David Fox <fox_at_cat.nyu.edu>
Date: 19 Jan 1997 20:01:44 -0500

"John L. Stein" <stein_at_seas.ucla.edu> writes:

> How can I return from a function?
>
> In c you'd use
> if A return;
>
> But there is no return in STk.

There is no explicit return in Scheme. Instead of "if A return"
write "(if (not A) (whatever came after the return))"
-- 
David Fox	    http://www.cat.nyu.edu/fox		 xoF divaD
NYU Media Research Lab   fox_at_cat.nyu.edu    baL hcraeseR aideM UYN
Received on Mon Jan 20 1997 - 01:51:57 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST