Lisp HUG Maillist Archive

sys:load-data-file

Is there any way I can get sys:load-data-file to load a fasl file whose extension is not a sanctioned fasl file extension?  I want to (sys:load-data-file "test.data"), where "test.data" was created with hcl:dump-forms-to-file.


Re: sys:load-data-file

Gail Zacharias wrote:
> 
> Is there any way I can get sys:load-data-file to load a fasl file whose extension is not a >sanctioned fasl file extension?  I want to (sys:load-data-file "test.data"), where "test.data" was >created with hcl:dump-forms-to-file.

I'm not sure this will do what you need but it's what I use to load a
regular fasl file
that happens to have a different extension.

      #+lispworks
      (let ((system::*binary-file-type* "bxe"))
         (load (namestring (truename xpath))))


Updated at: 2020-12-10 08:57 UTC