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

Re: [PATCH] madprop about forced words

Thread Previous | Thread Next
From:
Gerard Goossen
Date:
April 19, 2007 04:29
Subject:
Re: [PATCH] madprop about forced words
Message ID:
20070419113321.GE19244@ostwald
On Fri, Apr 06, 2007 at 03:25:24PM +0200, Rafael Garcia-Suarez wrote:
> On 29/03/07, Gerard Goossen <gerard@tty.nl> wrote:
> >Patch add a new madprop 'B' saying that something was forced to be a
> >word. (Very useful when converting barewords).
> 
> Thanks, applied as #30850.
> I notice a list of MAD keys at the end of op.h. 'B' is listed there,
> used in op.c (line 5455 currently). I don't claim to understand
> everything, but maybe this implies that the doc should be updated,
> and/or another letter be chosen for forced words ?

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

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?

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