Page 1 of 1

bug in init.lsp? (8.4.3)

Posted: Tue Feb 15, 2005 7:59 pm
by HPW
Taken from 8.4.3 init.lsp
Isn't the the (constant ..) the else from '(if (not defun) ...)'

Code: Select all

(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:

Code: Select all

(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))))

Posted: Tue Feb 15, 2005 11:42 pm
by Lutz
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