Re: Trying to Load An Alias from Another Namespace into The Current Namespace

2010-10-24 Thread Stefan Rohlfing
Thanks for pointing this out. Adding the namespace declaration was exactly the reason why loading the file did not work in the first place. Now everything is working like a charm, and thanks to you I learnt yet another piece of the Clojure puzzle! Best regards, Stefan On Oct 24, 10:54 pm, Meik

Re: Trying to Load An Alias from Another Namespace into The Current Namespace

2010-10-24 Thread Meikel Brandmeyer
Hi, On 24 Okt., 04:00, Stefan Rohlfing wrote: > This is what I did: > - > src/active-record/tns.clj > > (ns active-record.tns) > > (require '[active-record.user :as user]) > (require '[active-record.charge :as charge]) You shou

Re: Trying to Load An Alias from Another Namespace into The Current Namespace

2010-10-23 Thread Stefan Rohlfing
I started Emacs again and now your solution is working! I have no idea why it did not work on the first restart but I am happy that I now can import aliases from another namespace. Thanks again for your help! Stefan On Oct 24, 10:00 am, Stefan Rohlfing wrote: > Hi Mikel, > > I tried your soluti

Re: Trying to Load An Alias from Another Namespace into The Current Namespace

2010-10-23 Thread Stefan Rohlfing
Hi Mikel, I tried your solution but am still not able to import the aliases from another namespace: This is what I did: - src/active-record/tns.clj (ns active-record.tns) (require '[active-record.user :as user]) (require '[acti

Re: Trying to Load An Alias from Another Namespace into The Current Namespace

2010-10-23 Thread Stefan Rohlfing
Thanks for the great explanation. This really makes using the clj- record library much more comfortable! Stefan PS. Sorry for replying late. I could not get my VPN to work which meant Google Groups was blocked for me. On Oct 21, 7:47 pm, Meikel Brandmeyer wrote: > Hi, > > you can't transfer a

Re: Trying to Load An Alias from Another Namespace into The Current Namespace

2010-10-21 Thread Meikel Brandmeyer
Hi, you can't transfer aliases from one namespace to another. But as a workaround, you can create a file which contains the necessary commands: active-record/tables.clj: (require '[active-record.user :as user]) (require '[active-record.charge :as charge]) And then just load the file in the names

Trying to Load An Alias from Another Namespace into The Current Namespace

2010-10-21 Thread Stefan Rohlfing
Dear Clojure group, The library clj-record requires to add a source file for every table in a given database. This can lead to a lot of files whose namespaces have to be imported wherever you want to work on the tables. In order to avoid having to write the whole namespace declaration every time