guile-user
[Top][All Lists]
Advanced

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

Re: (load) Question


From: dvanhorn
Subject: Re: (load) Question
Date: Sun, 16 Feb 2003 00:11:43 -0500 (EST)
User-agent: IMP/PHP IMAP webmail program 2.2.7

Quoting "Robert Uhl <address@hidden>" <address@hidden>:

> I have a file which contains something like the following:
> 
> (let ((x 3))
>      (+ x 4))
> 
> I want to be able to load it in and retrieve the value 7 (this is
> really
> a massive over-simplification--what I'm actually doing is building a
> massive data structure up by hand...).  The problem is that (load
> "filename") returns nothing.  Now, I can use define to define a value,
> but this is a very clumsy way to pass data back out.
> 
> Does anyone have any idea how to do what I'm trying to do?  Shouldn't
> (load) return the result of evaluating that file?

load returns an unspecified value according to R5RS.  Does (eval (read)) suit
your needs?

HTH

-d




reply via email to

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