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

Re: [PATCH] madprop about forced words

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
April 20, 2007 04:56
Subject:
Re: [PATCH] madprop about forced words
Message ID:
b77c1dce0704200456q4dd36677o3060a99ec8ec2da3@mail.gmail.com
On 19/04/07, Gerard Goossen <gerard@tty.nl> 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About