rvirding/lfe — Issue #6: `flet` does not work in interpreter
Author: KlausTrainer
Created: 2011-10-19 19:14:31+00:00
State: open

In contrast to `let`, `flet` does not work in the interpreter.

This one prints "Hello!" as expected:

```lisp
(let ((hello (lambda () (: io format '"Hello!"))))
(funcall hello)) ; prints "Hello!" as expected
```

Whereas that one results in a badarg error:

```lisp
(flet ((hello (lambda () (: io format '"Hello!"))))
(hello)) ; wrongly generates a badarg error
```

```
exception error: badarg
in (: erlang length lambda)
in (lfe_eval -eval_let_function/2-fun-0- 3)
in (lists foldl 3)
```