Hello,

One question about CLR interop: what is the correct way to handle
'out' parameters in Clojure code? The following doesn't work:

Clojure 1.1.0-alpha-SNAPSHOT
user=> (def a (DateTime.))
#'user/a
user=> (DateTime/TryParse "2009/10/20" a)
True
user=> a
1/1/0001 12:00:00 AM
user=>

I guess TryParse creates another instance of a DateTime, and the
instance passed via 'a' is left unmodified.

I believe the same problem applies to 'ref' parameters.

Thanks,
-- 
Miron Brezuleanu

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to