newLISP Fan Club

Forum => Anything else we might add? => Topic started by: Jeff on February 07, 2008, 07:13:03 AM

Title: Problem with : operator and macros
Post by: Jeff on February 07, 2008, 07:13:03 AM
Lutz,



The : operator is evaluating symbols in the arguments list:


(new Class 'Test)
(define-macro (Test:foo self)
  (println (args)))
(set 'test (Test))
(:foo test these should not evaluate) ; => (nil nil not <9D20> nil)
Title:
Post by: Lutz on February 07, 2008, 07:46:29 AM
Yes, this doesn't allow macros. This will change in the next version. So at the moment there is no polymorph application for macros. You would have to call Test:foo explicitly.



Lutz