www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/01/06:30:49

From: mharris AT blackwidow DOT saultc DOT on DOT ca
Date: Sat, 1 Feb 1997 06:20:34 -0500 (EST)
Reply-To: mharris AT blackwidow DOT saultc DOT on DOT ca
To: Moo-Juice <Ben AT flag DOT demon DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: About Allegro's palettes
In-Reply-To: <Ine+zxASUb7yEwbm@flag.demon.co.uk>
Message-ID: <Pine.LNX.3.95.970201061338.140h-100000@capslock.com>
Organization: Total disorganization.
MIME-Version: 1.0

On Tue, 28 Jan 1997, Moo-Juice wrote:

> In article <+z987EApj96yEwVb AT talula DOT demon DOT co DOT uk>, Shawn Hargreaves
> <Shawn AT talula DOT demon DOT co DOT uk> writes
> >Moo-Juice writes:
> >>In allegro, the typedef for a Palette, is PALLETE.  Is this an
> >>Anglo/American difference, or simply spelt wrong? <g>
> >
> >It's a spelling mistake :-) But it's not my fault! I learned C with an
> >Atari compiler that spelt it like that in all the headers and libs, and
> >I've just got used to the incorrect spelling... I'm gradually trying to
> >mend my ways: the documentation for Allegro now uses the correct
> >spelling, and there are some #defines so that your program will work the
> >same whichever spelling you use...
> 
> Well in actual fact. by keeping it as PALLETE means you could define a
> palette called PALETTE (I hate trying to think up names for my
> palettes.. I've so far come up with PAL or PALETTE)...  :)

Sounds spagetti to me.  How about:

opening_screen_palette
master_palette
end_screen_palette
invisible_palette
palette_1
palette_2
strange_palette
palette[20]
Palette
PaLeTtE

I see no reason to use a spelling error to free up a name. I do
understand *why* it is there (so that old code is not broken), however
one should try and use the correct one incase support is dropped some
day for the other.  Also it aids reading code to have a consistent way
of writing something.

Well, thats all I've got to say on this.  I don't mean to start a
"grammar" war, just sharing an opinion and passing time...

:o)

Say, it would be funny for someone to write an obfuscated program that
used nothing but variations on spelling palette for all variables.
:o)

TTYL  


Mike A. Harris        |             http://blackwidow.saultc.on.ca/~mharris
Computer Consultant   |    My webpage has moved and my address has changed.
My dynamic address: http://blackwidow.saultc.on.ca/~mharris/ip-address.html
mailto:mharris AT blackwidow DOT saultc DOT on DOT ca

WABI: A commercial Windows emulator for Linux. http://www.caldera.com

- Raw text -


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