Subject: Re: Use of lambda From: Dave Love <d.love@xxxxxxxx> Date: 26 Feb 1998 18:50:10 +0000 |
>>>>> "Chris" == Chris Maden <crism@xxxxxxx> writes: Chris> (define pages Chris> (lambda () Chris> (string-append "..."))) Chris> When I call this in the stylesheet: Chris> (string-append "..." Chris> pages Chris> "...") Chris> the function is processed. Is it kosher to call a no-argument Chris> function without any parentheses, or is Jade being forgiving? Should Chris> I go the other way and make everything a procedure instead of a Chris> variable, and just define some of those procedures as always giving Chris> the same results? This seems confused, but I'm not sure how without more context. On the basis of the above fragment, Jade has a bug since the second argument of string-append is a function, not string. Do you _really_ mean that it's evaluated as (string-append "..." (pages) "...")? It's not what I see: jade:x.dsl:13:17:E: 2nd argument for primitive "string-append" of wrong type: "#<unknown object 136994064>" not a string [(define pages (lambda () ...)) is the same as (define (pages) ...).] DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Use of lambda, Chris Maden | Thread | Lambda: I lied, Chris Maden |
Re: Pernicious Mixed Content [was R, Norman Walsh | Date | Re: Keeping Text Together, Dave Love |
Month |