delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/06/09:56:52

Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE30162E5F0@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Annoying: const char * in Allegro
Date: Mon, 6 Sep 1999 13:05:00 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019