On Jun 23, 12:29 pm, Stuart Halloway stuart.hallo...@gmail.com
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
(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)
On Jul 17, 4:56 am, Richard Newman holyg...@gmail.com 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
On Jul 17, 1:52 pm, Rich Hickey richhic...@gmail.com 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
On Jul 1, 8:16 am, ztellman ztell...@gmail.com 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
On Jul 7, 5:11 am, Timothy Pratley timothyprat...@gmail.com 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
thing with no warnings.
Thanks for the help,
-Phil
Cheers,
Mark
On Jul 5, 10:18 pm, philip.hazel...@gmail.com
philip.hazel...@gmail.com wrote:
Hi,
The following code works as expected:
(import 'javax.imageio.ImageIO 'java.io.File
'java.awt.image.BufferedImage)
(defn bi-get-pixels
On Jul 6, 12:25 pm, Jarkko Oranen chous...@gmail.com 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
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 laurent.pe...@gmail.com 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
On Jun 4, 6:23 am, CuppoJava patrickli_2...@hotmail.com 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
On Jun 4, 3:00 pm, CuppoJava patrickli_2...@hotmail.com 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
On May 17, 1:14 am, Michel S. michel.syl...@gmail.com 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,
, philip.hazel...@gmail.com
philip.hazel...@gmail.com wrote:
On May 10, 12:37 am, David Nolen dnolen.li...@gmail.com wrote:
Cool, I couldn't get this to work, I get an exception like the following:
Exception in thread AWT-EventQueue-0
java.lang.IllegalArgumentException:
wrong number
14 matches
Mail list logo