From rjs at fdy2.demon.co.uk Mon Jan 31 18:38:36 2011 From: rjs at fdy2.demon.co.uk (rjs at fdy2.demon.co.uk) Date: Mon, 31 Jan 2011 18:38:36 +0000 Subject: [movitz-devel] Macros Message-ID: Is there anything special that needs to be done to add a macro to the system ? I'm trying to add the COLLECT macro from CMUCL to Movitz as it is used by the CMUCL pathnames code. The macro uses two helper functions which I am also trying to add. I have listed all three as members of the muerte package in movitz/movitz/packages.lisp and tried building both with and without importing the symbols into the movitz package. Whatever I do Movitz complains that the helper functions are undeclared. I started out with the three in a new file, but couldn't get Movitz to compile it so have put them just before the pathnames code that should use them. Robert Swindells From frode at netfonds.no Mon Jan 31 19:32:56 2011 From: frode at netfonds.no (Frode V. Fjeld) Date: Mon, 31 Jan 2011 20:32:56 +0100 Subject: [movitz-devel] Macros References: Message-ID: <82fws8yil3.fsf@shevek.netfonds.no> rjs at fdy2.demon.co.uk writes: > Is there anything special that needs to be done to add a macro to the > system? Well, obviously the macro expander runs at compile-time, so any functions it uses must also be available then. Have you tried wrapping said functions in (eval-when (:compile-toplevel) ...) ? -- Frode V. Fjeld