LoginSignup
3
2

More than 5 years have passed since last update.

Lisp in Small Pieces 1.7 Global Environment Kindle版の誤植

Last updated at Posted at 2015-11-21

ソースコードを画像化するときに失敗した様子。definitial の赤線の部分が不要です。
env.globalを更新して、'nameを返せばOKです。書籍版は問題ありません。

lispin.png

追記 
その下の行もおかしいです。

(define-syntax definitial 
  (syntax-rules ()
    ((definitial name)
     (begin (set! env.global (cons (cons 'name 'void) env.global))
            'name ) )
    ((definitial name value)
     (begin (set! env.global (cons (cons 'name value) env.global))
            'name ) ) ) )

こうですね。

3
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2