defrecord defines a java class, not a clojure entity. instead of :use, you need :import.
(ns stuff.core (:import (stuff phone-data))) On Oct 19, 1:02 pm, WoodHacker <ramsa...@comcast.net> wrote: > Hi all, > > Can anyone help me with this? I have a program with multiple > files. The program uses various data references, which may be > accessed from different files. To facilitate this I usually put ref > variables in a separate file and then :use that file in all the > various modules that make up the program. That has worked perfectly > - except for on problem. I cannot seem to get defrecord to work in > the same way. If I put a defrecord description in my refs file I get > the following error: > > Exception in thread "main" java.lang.IllegalArgumentException: Unable > to resolve classname: phone-data > > The question is: Why doesn't this work? And how do I get around > it? Do I put the defrecord in each file it's to be used in? > > Bill -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en