bug in init.lsp? (8.4.3)

Started by HPW, February 15, 2005, 11:59:08 AM

Previous topic - Next topic

HPW

Taken from 8.4.3 init.lsp

Isn't the the (constant ..) the else from '(if (not defun) ...)'

(if (not defun) ; loading twice would fail because of constant
  (define-macro (defun _func-name _arguments)
    (set _func-name (append
      '(lambda )
       (list _arguments)
       (args))))

  (constant (global 'defun)))


should be:



(if (not defun) ; loading twice would fail because of constant
 (begin
  (define-macro (defun _func-name _arguments)
    (set _func-name (append
      '(lambda )
       (list _arguments)
       (args))))
 (constant (global 'defun))))
Hans-Peter

Lutz

#1
Yes, thanks for the correction. I will post a new init.lsp in the download directory. If 'defun' is not defined it should define it and make it contans/global. The last statement should also be indented to the same level as the 'define-macro'.



Lutz