scsh-users
[Top] [All Lists]

load

To: scsh-news@zurich.ai.mit.edu
Subject: load
From: walter@pelissero.org (Walter C. Pelissero)
Date: 22 Nov 2001 12:34:04 +0000
Organization: Customer of PlusNet
This may be more Scheme48 specific.  Anyway here it goes.

Is there a way in Scsh to make visible a definition done in a
structure to a loaded script?

That is:

(define-structure program
  (export ...)
  (open scheme scsh)
  (begin

     (define (foo args)
        ...)

     (load "source.scm")))

where source.scm makes use of foo.

If the definition is done outside a structure it works.  Otherwise
not.

-- 
walter pelissero
http://www.pelissero.org

<Prev in Thread] Current Thread [Next in Thread>