Yes. Assuming I have following macros:

(button :id b1 :listener #(...)) => (let [b1 (new JButton)] ...)
(panel [:id p1] (button :id b1 ...) (button :id b2 ...)) => (let [p1
(new JPanel) b1 (button :id b1 ...) b2 (button :id b2 ...)] ...)

How to make the listener in b1 refer to b2?

Razvan

On Dec 14, 11:09 pm, David Nolen <dnolen.li...@gmail.com> wrote:
> Do you have a minimal example of what you are trying to do?
>
> On Wed, Dec 14, 2011 at 3:53 PM, Razvan Rotaru <razvan.rot...@gmail.com>wrote:
>
>
>
>
>
>
>
> > letfn defines functions. I'm just defining some values. The values
> > contain anonymous functions which need to refer to other values.I know
> > there are workarounds for this, but this means I must change the
> > interface.
>
> > Razvan
>
> > On Dec 14, 9:56 pm, David Nolen <dnolen.li...@gmail.com> wrote:
> > > On Wed, Dec 14, 2011 at 2:53 PM, Razvan Rotaru <razvan.rot...@gmail.com
> > >wrote:
>
> > > > I don't quite understand why people are saying this. Anyway, It's not
> > > > enough for me.
>
> > > What can't you solve your problem with what was suggested?
>
> > > David
>
> > --
> > 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

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