On Wed, Mar 12, 2003 at 07:09:23PM +0000, Angus Leeming wrote:
> - theCatcode['&'] = catAlign;
> + theCatcode[static_cast<unsigned int>('\\')] = catEscape;
>
> Why not:
>
> setCatcode('&', catAlign);
Because that's simply assigning a value to an array element.
I ordinarily do not use a function for that.
> void setCatcode(char c, CATCODETYPE val) {
> theCatcode[static_cast<unsigned char>(c)] = val;
> }
Hm. Might be an option. But I still don't like it. We complicate code
(_correct code_, no less!) just to make some compiler happy. If this were
MSVC++ 6.0 or Sun whatever everbody would start cursing.
For bleeding edge g++ we'd cut our legs off.
I must have missed some point.
Andre'
--
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)