求助:如何在chez中实现自定义的模块语法
By
sadhen
at 2018-06-29 • 0人收藏 • 276人看过
https://github.com/texmacs/TimScheme
我在上面的Repo里面写了一下现存的Guile 1.8的自定义方式,大概达到这样的效果:
文件1:
(texmacs-module (sub mymodule)) (define-public (pippo a b) (+ a b))
然后在第二个文件中
(inherit-modules (sub mymodule)) (display (pippo 10 20)) (display "\n")
1 个回复 | 最后更新于 2018-06-30
登录后方可回帖
用自定义库就可以了
test.ss
第二个文件