Problem with : operator and macros

Started by Jeff, February 07, 2008, 07:13:03 AM

Previous topic - Next topic

Jeff

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

=====

Old programmers don\'t die. They just parse on...



http://artfulcode.net\">Artful code

Lutz

#1
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