[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in M4
From: |
Sam Lauber |
Subject: |
Bug in M4 |
Date: |
Mon, 03 Jan 2005 20:11:27 +0100 |
I was using GNU M4 1.4.2, and typed in the following recursive additive macro:
define(`add', `ifelse($1, 0, $2, add(decr($1), incr($2))')
I then typed `add(1, 1)'. Obviously, I expected it to say `2', but it said
`Recursion limit of 250 exceeded; use -L<N> to change'
I consider this a bug, because though this _is_ a recursive alogrithm,
I don't think it would recurse 250 times over adding 1 + 1.
Samuel Lauber
--
_____________________________________________________________
Web-based SMS services available at http://www.operamail.com.
From your mailbox to local or overseas cell phones.
Powered by Outblaze