home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / scheme / 2736 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  710 b 

  1. Path: sparky!uunet!spool.mu.edu!agate!anarres.CS.Berkeley.EDU!bh
  2. From: bh@anarres.CS.Berkeley.EDU (Brian Harvey)
  3. Newsgroups: comp.lang.scheme
  4. Subject: LOAD in what environment?
  5. Date: 15 Dec 1992 06:59:40 GMT
  6. Organization: University of California, Berkeley
  7. Lines: 10
  8. Distribution: world
  9. Message-ID: <1gjvosINN76m@agate.berkeley.edu>
  10. NNTP-Posting-Host: anarres.cs.berkeley.edu
  11.  
  12. It's not clear to me from r4rs what happens if you call LOAD other than
  13. at toplevel.  I'd like to be able to do a quick-and-dirty autoload by
  14. saying
  15.  
  16. (define (foo . args)
  17.   (load "foo.scm")
  18.   (apply foo args))
  19.  
  20. but I suspect that compiler writers would rather that I not be allowed
  21. to do that.  Can anyone clarify this for me?  Tnx.
  22.