Welcome to the CHICKEN Scheme pasting service

load-and-import added by gahr on Tue Jan 24 09:23:59 2023

(define-syntax load-and-import
  (syntax-rules ()
    ((load-and-import mod ...)
     (begin
       (begin
         (load (sprintf "~A.scm" (symbol->string 'mod)))
         (import mod) ;; THIS
         ) ...
       ))))

(load-and-import foo bar)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Type in the text below:
        __                         
  __ _ / _|____   _  ___  ___ __ _ 
 / _` | ||_  / | | |/ _ \/ __/ _` |
| (_| |  _/ /| |_| |  __/ (_| (_| |
 \__,_|_|/___|\__,_|\___|\___\__, |
                             |___/ 
Visually impaired? Let me spell it for you (wav file) download WAV