On Dec 1, 9:23 am, "Andrew P. Lentvorski, Jr." <[EMAIL PROTECTED]>
wrote:
> I'd really like some folks to take a look at the "gl-beg-end" macro.
> It took me *way* too long to figure out how to update that.

I'd suggest to update it with the following version:

(defmacro with-gl
  [gl mode & body]
  `(try (. ~gl glBegin (. GL ~mode))
        [EMAIL PROTECTED]
        (finally (. ~gl glEnd))))

I think it is better, because it uses try/finally to make sure the
gl.glEnd is always called; and the macro name uses the with-*
convention, like with-open, with-meta, etc.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to