Re: [ClojureScript] Circular references broken?
Circular dependencies between namespaces were never supported same as Clojure. On Saturday, October 11, 2014, Paul Butcher wrote: > I'm trying to upgrade an project that's currently using ClojureScript > 0.0-2322 to a more up to date release, and have hit a problem I can't > immediately find a workaround for. > > The project has a couple of mutually dependent source files (i.e. they > both use definitions from each other). One of the files :require's the > other, and the other one uses fully-qualified names. This works just fine > with 0.0-2322, but if I upgrade to any more recent release (0.0-2341 or > higher, including the most recent 0.0-2371), I get a "Use of undeclared > Var" warning with each fully-qualified name. > > Should I expect this to work? > > I've created a very small cutdown project that demonstrates the issue: > > https://github.com/paulbutcher/circular-reference > > Do I need to pick apart the definitions in the two files so that they're > not mutually dependent? Or is there some other way to address the issue? > > Thanks, > > -- > paul.butcher->msgCount++ > > Silverstone, Brands Hatch, Donington Park... > Who says I have a one track mind? > > http://www.paulbutcher.com/ > LinkedIn: http://www.linkedin.com/in/paulbutcher > Skype: paulrabutcher > > Author of Seven Concurrency Models in Seven Weeks: When Threads Unravel > http://pragprog.com/book/pb7con > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojurescript+unsubscr...@googlegroups.com > > . > To post to this group, send email to clojurescript@googlegroups.com > . > Visit this group at http://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.
[ClojureScript] Re: Circular references broken?
In the namespaces chapter of ClojureScript: Up and Running, bottom of pg. 57, it indicates ClojuresScript does not support circular references between namespaces. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.
[ClojureScript] Circular references broken?
I'm trying to upgrade an project that's currently using ClojureScript 0.0-2322 to a more up to date release, and have hit a problem I can't immediately find a workaround for. The project has a couple of mutually dependent source files (i.e. they both use definitions from each other). One of the files :require's the other, and the other one uses fully-qualified names. This works just fine with 0.0-2322, but if I upgrade to any more recent release (0.0-2341 or higher, including the most recent 0.0-2371), I get a "Use of undeclared Var" warning with each fully-qualified name. Should I expect this to work? I've created a very small cutdown project that demonstrates the issue: https://github.com/paulbutcher/circular-reference Do I need to pick apart the definitions in the two files so that they're not mutually dependent? Or is there some other way to address the issue? Thanks, -- paul.butcher->msgCount++ Silverstone, Brands Hatch, Donington Park... Who says I have a one track mind? http://www.paulbutcher.com/ LinkedIn: http://www.linkedin.com/in/paulbutcher Skype: paulrabutcher Author of Seven Concurrency Models in Seven Weeks: When Threads Unravel http://pragprog.com/book/pb7con -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at http://groups.google.com/group/clojurescript.