[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FYI: 27-gary-builtin-argument-count-check-refactoring.patch
From: |
Gary V. Vaughan |
Subject: |
Re: FYI: 27-gary-builtin-argument-count-check-refactoring.patch |
Date: |
Sat, 13 Oct 2001 15:40:47 +0100 |
User-agent: |
Mutt/1.3.16i |
On Sat, Oct 13, 2001 at 08:48:54AM +0200, address@hidden wrote:
> On Fri, Oct 12, 2001 at 09:05:27PM +0100, Gary V. Vaughan wrote:
> > Now we decalre builtins like this:
> >
> > /* function macros blind argmin argmax */
> > BUILTIN(builtin, FALSE, TRUE, 2, -1 ) \
> >
> > Pretty cool huh?
>
> You beat me on this one :) That's something I wanted, not only for
> factorization, but also because I think this is a service which define
> should provide, so that in macros we don't have to ifelse errprint etc.
> which would slow down things too much.
Yeah, I added a TODO entry. The stumbling block is thinking of a clean
way to expose argument count limit setting to M4. I am not sure how we
can tell the expansion engine what the limits are for user declared
macros... define_with_limits(foo, 1, 3, blah)? yuck. Open to
suggestions...
> I would also like to have the location site attached to the values too,
> and ultimately have m4 provide M4sugar's expansion_stack which allows
> to know the expansion track that was followed until some failure/warning
> message.
Sounds good. Add a TODO item?
> Really, a gareat patch :)
Thanks. I got home an hour early, and needed something to fill the void
:-)
Cheers,
Gary.
--
())_. Gary V. Vaughan gary@(oranda.demon.co.uk|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____
/ )= GNU Hacker http://www.gnu.org/software/libtool \' `&
`(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/