develooper Front page | perl.perl5.porters | Postings from April 2007

Re: [PATCH] madprop about forced words

Thread Previous | Thread Next
Rafael Garcia-Suarez
April 20, 2007 04:56
Re: [PATCH] madprop about forced words
Message ID:
On 19/04/07, Gerard Goossen <> wrote:
> This patch changes the madprop to 'g' and add it to the doc (Sorry for
> being slow...)
> I didn't know that they were listed in op.h, and the 'B's probably would
> not conflict, but for safety I changed it madprop to 'g' (the first free
> lower case letter I could find).

Thanks, applied as #30992.

> 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)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About