Re: [AD] remove global variables from Allegro

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


those that are left global will have the al_  prefix will they not ?
that should be a sufficient pseudo namespace.


Evert Glebbeek wrote:
On Thursday 25 May 2006 03:55, Jon Rafkind wrote:
Occasionally I bind Allegro to various languages and the biggest pain is
always dealing with global variables that permeate through Allegro.
Could the same thing that was done with the text*_ex functions be done
with virtually everything else? In particular Id like to get rid of
color_map and rgb_map. Grepping through the Allegro source shows quite a
number of hits of these two variables so it would be fairly non-trivial
to remove all their uses, I would only attempt it if there is a general
consensus that such a thing is good.

It is good, but not for 4.2, certainly not for 4.2.1
Eliminating global variables as much as possible is one of the things 4.3 is supposed to do better.

Evert


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/