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

Re: [plt-scheme] eval question

In a message dated Wed, 5 Jun 2002  5:49:46 PM Eastern Daylight Time, Sebastian H Seidel <Sebastian.H.Seidel@hno.med.uni-giessen.de> writes:

> I found that very practical when saving the settings of a program (the
> installer of the matlab-interface i wrote lately) to the hard-disk. If
> they are needed again I simply do
>(with-input-from-file path
>  (lambda ()
>    (eval (read))))

Since you are eval'ing the contents of the file in the top-level environment anyway, why not just use load?
   (load path)