[Top][All Lists]
[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
- (load) Question, Robert Uhl <address@hidden>, 2003/02/15
- Re: (load) Question,
dvanhorn <=
- Re: (load) Question, Robert Uhl <address@hidden>, 2003/02/16
- Re: (load) Question, Keith Wright, 2003/02/16
- Re: (load) Question, Robert Uhl <address@hidden>, 2003/02/16
- Re: (load) Question, Egil Moeller, 2003/02/19
- Re: (load) Question, Andreas Rottmann, 2003/02/19
- Re: (load) Question, Dale P. Smith, 2003/02/19
- Re: (load) Question, Mikael Djurfeldt, 2003/02/19