help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another question about lambdas


From: Emanuel Berg
Subject: Re: Another question about lambdas
Date: Sat, 10 Dec 2022 21:03:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Michael Heerdegen wrote:

> What's the result of the following expression - and why?
> Or maybe it is invalid?
>
>   (let* ((x 'l)
>          (f (lambda () x))
>          (x 'd))
>     (funcall f))

d!

Isn't this the same lambda thing again?

(setq f (lambda () x))

(funcall f) ; DNC

(setq x "marks the spot")

(funcall f) ; marks the spot too

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]