[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: paren-balanced case patterns

From: Dan Manthey
Subject: Re: paren-balanced case patterns
Date: Wed, 9 Feb 2005 13:44:24 -0500

On Wed, 9 Feb 2005, Stepan Kasal wrote:
> On Tue, Feb 08, 2005 at 02:37:59PM -0500, Dan Manthey wrote:
> > +m4_define([AS_CASE_PATTERN],
> > +[m4_if($#,0,[[$0]],$#,1,[[$1 ) ]],[[$1 | ]$0(m4_shift($@))])])
> Wouldn't a simple
>       m4_define([AS_CASE], [$1)])
> serve the same purpose?

Yes, completely.  I was hoping the name `AC_CASE' sufficed, but it is
somewhat misleading.  In fact, since _you_ have the better definition and
my paperwork isn't in yet, can you send this off to the maintainer?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]