Mail Archives: djgpp/1999/09/06/09:56:52
Damian Yerrick writes:
> All of Allegro's string-handling (textout(), textprintf(),
> files, etc.) functions take a char * instead of a const
> char *. Anyone know why?
No particular reason, except that I've never particularly grokked
things being const, don't tend to use it myself, and hence never used
it in Allegro either.
I think I probably wouldn't mind fixing this if you want to make some
patches for it, but I'm a little bit hesitant to leap into that because
my experience of making things const is that it tends to ripple all
the way through your sources, and that might end up quite ugly. I
guess what I'm saying is that I don't mind you fixing this as long
as the fixes don't get too messy, but I don't care enough to do
anything about it myself :-)
Shawn Hargreaves.
- Raw text -