Re: FLET vs LABELS
From: Alex Mizrahi (udodenko_at_hotmail.com)
Date: 01/15/05
- Next message: Peter Seibel: "Re: FLET vs LABELS"
- Previous message: Alex Mizrahi: "Re: FLET vs LABELS"
- In reply to: David Steuber: "FLET vs LABELS"
- Next in thread: Peter Seibel: "Re: FLET vs LABELS"
- Reply: Peter Seibel: "Re: FLET vs LABELS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 15 Jan 2005 01:24:46 +0200
(message (Hello 'David)
(you :wrote :on '(14 Jan 2005 17:21:50 -0500))
(
DS> FLET and LABELS are both special operators. They both do the same
DS> thing except that, "labels is equivalent to flet except that the scope
DS> of the defined function names for labels encompasses the function
DS> definitions themselves as well as the body."
DS> So why would FLET be used in preference to LABELS?
you cannot do stuff like
(flet ((+ (x y) (print (+ x y)))) (+ 3 4))
with labels.
there are situations when you really need to access outer function
definition, however i don't think they are very frequent.
)
(With-best-regards '(Alex Mizrahi) :aka 'killer_storm)
(prin1 "People, who lust for the Feel of keys on their fingertips (c)
Inity"))
- Next message: Peter Seibel: "Re: FLET vs LABELS"
- Previous message: Alex Mizrahi: "Re: FLET vs LABELS"
- In reply to: David Steuber: "FLET vs LABELS"
- Next in thread: Peter Seibel: "Re: FLET vs LABELS"
- Reply: Peter Seibel: "Re: FLET vs LABELS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|