On Jun 23, 12:29 pm, Stuart Halloway
wrote:
> I think the behavior you are seeing here is reasonable. When you mix
> compilation and dynamic access to vars, you need to reason carefully about
> the order in which things will happen.
In general I would say that code working differently depending
(ns testcomp)
(var-get (or (ns-resolve *ns* 'foo)
(intern *ns* 'foo :foo)))
;; foo ;(1)
;; (println foo) ;(2)
;; (do foo 3);(3)
;; (fn [] foo) ;(4)
;; ((fn [] foo)) ;(5)
;; ((fn [] (println foo))) ;(6)
With
On Jul 17, 1:52 pm, Rich Hickey wrote:
> #_ does what you want:
>
> user=> (list 1 2 #_42 3)
> (1 2 3)
Thanks for pointing that out.
I notice this is actually on the reader page - apologies for not
looking properly.
--~--~-~--~~~---~--~~
You received this message
On Jul 17, 4:56 am, Richard Newman wrote:
> If you want unsyntactic input in your file, comment it out with
> semicolons.
>
> Adding true block comments -- #| |# -- is on the to-do list.
While we're on the subject, are there any plans for a sexp-comment?
Essentially I'm looking for reader synta
On Jul 7, 5:11 am, Timothy Pratley wrote:
> I have a function that relies on a keyword being supplied. The keyword
> is used to find something in a static map. I want to put in the doc-
> string:
> (str "blah blah blah, arg1 must be one of " (keys map))
> Suggestions?
You can put the docstring d
On Jul 1, 8:16 am, ztellman wrote:
> Most of the OpenGL code I've seen has been a fairly literal
> translation of the corresponding Java, so as a way of getting my feet
> wet in Clojure I've written something that tries to be a little more
> idiomatic. It can be found athttp://github.com/ztellma
On Jul 6, 12:25 pm, Jarkko Oranen wrote:
> (ints nil) might also work
It does indeed. This seems to be as good a solution as could be hoped
for, thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Clojure" gr
does the right thing with no warnings.
Thanks for the help,
-Phil
>
> Cheers,
>
> Mark
>
> On Jul 5, 10:18 pm, "philip.hazel...@gmail.com"
>
> wrote:
> > Hi,
>
> > The following code works as expected:
>
> > (import 'javax.imageio
Hi,
The following code works as expected:
(import 'javax.imageio.ImageIO 'java.io.File
'java.awt.image.BufferedImage)
(defn bi-get-pixels
[bi]
(vec (.. bi (getData) (getPixels 0 0 (.getWidth bi) (.getHeight bi)
nil
(bi-get-pixels (. ImageIO read (File. "/home/phil/prog/small-
test.png"))
On Jul 1, 9:52 am, Laurent PETIT wrote:
> As far as IDE integration is concerned, i would not bother (at first)
> about incremental thing. I rather intend to always parse the entire
> edited file content (of course if this causes a performance problem, I
> might rethink about it). For performance
On Jun 4, 3:00 pm, CuppoJava wrote:
> Hey guys.
> Thanks for the help. I have to clarify my question a bit.
>
> f(x,y) and a0 are given and do not assume any properties.
> Find g(x,y) and b0, such that for *any* list of numbers v,
>
> (reduce f a0 v) = (reduce g b0 (reverse v))
This is not alway
On Jun 4, 6:23 am, CuppoJava wrote:
> Hey guys,
> I'm really stuck on this math question, and I'm wondering if you guys
> know of any links that may help me.
>
> Given: f(x,y), a0, a list of numbers v.
> Find: g(x,y) and b0 such that:
>
> (reduce f a0 v) = (reduce g b0 (reverse v))
>
> Thanks fo
On May 17, 1:14 am, "Michel S." wrote:
> In Clojure, it is possible to do the former -- (def orig+ +) -- but it
> appears that overriding a clojure.core definition is not possible. I'd
> love to be wrong on this, though.
>
> user=> (def + -)
> java.lang.Exception: Name conflict, can't def + becau
ut a reasonable way to fix it, but in the meantime I've
inserted a workaround into gears.clj. Could you test the new version?
I would also be interested in seeing the output of
(map #(cons (.getName %) (seq (.getParameterTypes %)))
(filter #(#{"glLightfv" "glMaterialfv"
you
know of a better way than to have a separate src/net/philh directory
in each library's tree?
>
> On Sat, May 9, 2009 at 4:05 PM, philip.hazel...@gmail.com <
>
> philip.hazel...@gmail.com> wrote:
>
> > It's essentially a thin wrapper on JOGL, but I intend t
It's essentially a thin wrapper on JOGL, but I intend to improve the
interface in future.
http://github.com/ChickenProp/cloggle/tree/master
Clojure, the JVM and opengl are all fairly new to me, so I'd
appreciate feedback about my coding style, potential pitfalls, and
anything else you can think
Hi,
user=> (use 'clojure.contrib.lazy-xml)
nil
user=> (emit '{:tag :foo :attrs {:a "b" :c "d"} :content
({:tag :bar :attrs {:e "f"} :content ({:tag :baz :attrs nil :content
("hello")})})} :pad true)
hello
nil
The 'foo' element is getting the requested padding, but it does not
propagate to th
17 matches
Mail list logo