[ruby-opengl-devel] opinions on rubygl

Robert Krimen grin.k1tt3n at gmail.com
Fri Sep 1 01:24:33 EDT 2006


On 8/31/06, John Gabriele <jmg3000 at gmail.com> wrote:

>
> Hm. It also occurs to me that, if we went for the all lowercase names
> without the gl/glu/glut prefixes, when you do that "include Gl, Glu,
> Glut", you'd be polluting your namespace quite a bit. For graphics
> folks, they may already have methods with names like vertex, material,
> draw_pixels, get, scale, rotate, look_at, enable, and so on. Same goes
> for the way rubygl turns those constant names into un-prefixed symbols
> (:alpha, :rgb, etc.). Looks nice at first, but may turn into a
> nuisance later.
>
> Yeah, that could actually turn into a mess, and then folks probably
> just wouldn't bother with the "include" statement anymore, which
> kinda' defeats the purpose of trying to make it so you don't have to
> prefix everything with a module name.
>
> Thanks.
>


Great point, I didn't think of that, but that would definitely be an issue.
I've had some struggles myself
with the ruby namespace, and it wasn't fun.

Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ruby-opengl-devel/attachments/20060831/99d45038/attachment.html 


More information about the ruby-opengl-devel mailing list