Subject: Re: Scheme help... From: Harald Hanche-Olsen <hanche+dsssl-l@xxxxxxxxxxxx> Date: Tue, 24 Feb 1998 19:52:41 +0100 |
- Chris Maden <crism@xxxxxxx>: | (define (%gentext-by%) ...) defines a procedure. That procedure is | executed when it's called, in the context of the caller, so | (current-node) means something. | | (define %gentext-by% ...) defines a... symbol? object? whatever. | Not a procedure. Actually it might, if "..." happened to evaluate to a procedure. In fact, (define (%gentext-by%) ...) can be considered an abbreviation of (define %gentext-by% (lambda () ...)). It is a property of the special form lambda that its body is not evaluated, but rather becomes a part of the resulting procedure, to be evaluated when that procedure is called. | Please excuse me if my terminology isn't correct; I'm not a CS major | and can't locate the right parts of the Standard. No problem. One would usually say that (define %gentext-by% ...) evaluates "..." and binds the result to the symbol %gentext-by%. - Harald DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Scheme help..., Chris Maden | Thread | Re: Scheme help..., Daniel Speck |
Re: Scheme help..., Daniel Speck | Date | Re: Scheme help..., Paul Prescod |
Month |