Page 1 of 1

Problem with : operator and macros

Posted: Thu Feb 07, 2008 3:13 pm
by Jeff
Lutz,

The : operator is evaluating symbols in the arguments list:

Code: Select all

(new Class 'Test)
(define-macro (Test:foo self)
  (println (args)))
(set 'test (Test))
(:foo test these should not evaluate) ; => (nil nil not <9D20> nil)

Posted: Thu Feb 07, 2008 3:46 pm
by Lutz
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