texmacs-dev
[Top][All Lists]
Advanced

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

[Texmacs-dev] define in a lambda


From: Sam Liddicott
Subject: [Texmacs-dev] define in a lambda
Date: Wed, 23 May 2012 13:36:23 +0100

I find that stderr is my friend!

I can execute this statement from meta-x:
(define squarel (lambda (x)  (* x x)))

(of course it doesn't work to call this from texmacs cos it gets passed a tree)

but when I try and embed that in an extern lambda within the editor like this:

<extern|(lambda () (define squarel (lambda (x) (* x x))))>

it prints as <syntax-error|memoization|~A ~S.|?|?>
and stderr shows: 
<unnamed port>: In procedure memoization in _expression_ ((lambda () #)):
<unnamed port>: Missing body _expression_ in ((define squarel (lambda (x) (* x x)))).


So what's going on there?

Sam

reply via email to

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