[Top][All Lists]

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

Re: confused about make-module and eval

From: Massimiliano Gubinelli
Subject: Re: confused about make-module and eval
Date: Tue, 24 Mar 2020 01:35:51 +0100

I think a fresh module do not have any binding. So 'lambda is not defined. You 
would have to create bindings inside the module, maybe you could just import 
the-scm-module .

In particular this can be a way to allow only certain functionality to be 
available to the program you eval.


> On 24. Mar 2020, at 01:32, Matt Wette <address@hidden> wrote:
> I expect this to work, but it does not.  Any anyone elaborate?
> What is the minimum module that can make this work?  (make-fresh-use-module)?
> scheme@(guile-user)> (eval '(lambda (a b c) 1) (make-module))
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> Unbound variable: lambda
> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
> scheme@(#{ g188}#) [1]>

reply via email to

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