Skip to content

Instantly share code, notes, and snippets.

@Hamayama
Created January 3, 2024 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hamayama/937320546e05b4d889f35cfae50a6310 to your computer and use it in GitHub Desktop.
Save Hamayama/937320546e05b4d889f35cfae50a6310 to your computer and use it in GitHub Desktop.
Gauche の import 中のエラーの確認
set GOSH="C:\Program Files\Gauche\bin\gosh.exe"
@rem set GOSH="C:\Program Files\Gauche0913\bin\gosh.exe"
%GOSH% -I. library-test.scm
@rem set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\bin;%PATH%
@rem set MSYSTEM=MINGW64
@rem gdb --args %GOSH% -I. library-test.scm
pause
(import (scheme base)
(scheme write)
(scheme load))
;(import (library1))
;(use library1)
;(load "library1")
(import (library2))
;(use library2)
;(load "library2")
(display "finished.")
(newline)
(define reverse-rconj
(case-lambda
(() '())
((lst) lst)
((lst x) (cons x lst))))
(define-library (library1)
(import (scheme base)
;(scheme case-lambda)
)
(include "library1.scm"))
(define-library (library2)
(import (scheme base)
(scheme load)
(library1)
)
;(begin (load "library1"))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment