On Mon, Mar 16, 2009 at 9:44 PM, Timothy Pratley <timothyprat...@gmail.com> wrote: > > Hi Keith, > > I don't follow the 'lazy-init' part... It seems to me that you create > a delay but force it immediately which is effectively just running > create-a-text-field. That behavior seems different from the factory > style return if exists or create you originally started with.
The code looks right to me. It creates a delay and then assigns to this var a *function* that forces the delay whenever it is invoked. Since delay caches its contents, its behavior matches the factory style. --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---