On Fri, Apr 20, 2007 at 01:56:38PM +0200, Rafael Garcia-Suarez wrote: > On 19/04/07, Gerard Goossen <gerard@tty.nl> wrote: > >We are running a bit out of letter so I was planning to refactor the > >madprop to use strings instead of letters (i.e. change > ><char mad_key> to <const char* mad_key> and <curmad('X', ...)> > >to <cumad("random", ...)>, any objections? > > char* means allocation and deallocation problems. If you need more, > why don't you use a char[2] instead ? (which will be more > space-efficient as well) Although more complex to compare A possible alternative is to continue using a char, but #define two character mnemonics that map to it. Nicholas ClarkThread Previous | Thread Next