WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

define in a lambda

View: New views
1 Messages — Rating Filter:   Alert me  

define in a lambda

by Sam Liddicott :: Rate this Message:

| View Threaded | Show Only this Message

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

_______________________________________________
Texmacs-dev mailing list
Texmacs-dev@...
https://lists.gnu.org/mailman/listinfo/texmacs-dev