Re: Bug: self require - stack overflow

2008-09-09 Thread Brett Morgan
On Tue, Sep 9, 2008 at 7:29 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Sep 9, 8:48 am, Brett Morgan [EMAIL PROTECTED] wrote: You seem to be asking for the compiler to be able to prove that your computation finishes, and if it doesn't then give you a sane response. No. Would you

Re: Bug: self require - stack overflow

2008-09-09 Thread [EMAIL PROTECTED]
On Sep 9, 10:51 am, Brett Morgan [EMAIL PROTECTED] wrote: Would you kindly educate me in how you believe that Clojure would go about trapping your error and giving you an error message instead of running out of stack space, given that you had given it a non-terminating dependency list? First

Re: Bug: self require - stack overflow

2008-09-09 Thread Mike Hinchey
It doesn't seem *impossible* for require and use to keep a var set of namespaces it's loading and check if the current is already in the set then give an error. However, I don't think clojure supports circular dependency since loading is sequential. I know there's a trick for functions to be

Re: Bug: self require - stack overflow

2008-09-09 Thread Brett Morgan
On Tue, Sep 9, 2008 at 11:58 PM, Randall R Schulz [EMAIL PROTECTED] wrote: On Tuesday 09 September 2008 01:51, Brett Morgan wrote: ... Would you kindly educate me in how you believe that Clojure would go about trapping your error and giving you an error message instead of running out of

Re: Threads and Functions Question

2008-09-09 Thread noahr
The binding trick seems to work. I had already tried using (in-ns) before, but didn't realize about needing the binding, so got a nasty error of course. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure group.

Re: Bug: self require - stack overflow

2008-09-09 Thread Dmitri P
Whatever you do, don't kill Clojure while trying to save us from ourselves. --~--~-~--~~~---~--~~ 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 To unsubscribe

Method dispatch on class - ns-* functions accepting symbols

2008-09-09 Thread Stephen C. Gilardi
Rich mentioned a desire for the ns-* functions to accept either a symbol or a namespace for arguments where they currently accept a namespace. Using a multimethod that dispatches on the class of that argument is one way to do that. Here's an example: (defmulti ns-aliases class)

Re: Bug: self require - stack overflow

2008-09-09 Thread ntupel
On Tue, 2008-09-09 at 23:57 +1000, Brett Morgan wrote: On Tue, Sep 9, 2008 at 10:31 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Sep 9, 11:26 am, Brett Morgan [EMAIL PROTECTED] wrote: For C, protection against circular dependencies is on the head of the programmer, in the form of

Re: Bug: self require - stack overflow

2008-09-09 Thread Brett Morgan
On Wed, Sep 10, 2008 at 4:38 PM, ntupel [EMAIL PROTECTED] wrote: On Tue, 2008-09-09 at 23:57 +1000, Brett Morgan wrote: On Tue, Sep 9, 2008 at 10:31 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Sep 9, 11:26 am, Brett Morgan [EMAIL PROTECTED] wrote: For C, protection against