Have you looked at the immigrate function in Compojure? This imports public vars from a different namespace into a namespace as if they were defined there. Maybe this is enough to get the behavior that you want? On Sun, May 17, 2009 at 9:12 PM, Mark Engelberg <[email protected]>wrote:
> > On Sun, May 17, 2009 at 2:18 PM, mikel <[email protected]> wrote: > > I'm still not quite clear on exactly what you're trying to accomplish. > > You showed how to accomplish your purpose in Clojure, but then > > suggested that the result was not 'clean'. It's not quite clear what > > you mean by 'clean'--that is, what features of the solution you > > presented do you want to change? > > What's not clean about it is that copying and pasting all the > unchanged code from one file to another is unacceptable. > > The question here is how to create one file/namespace which is mostly > the same as another, with only a couple global variables and/or > functions different. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
