Re: [exim] More integer annoyances in 4.65

Top Page
Delete this message
Reply to this message
Author: Stephen Gran
Date:  
To: exim-users
Subject: Re: [exim] More integer annoyances in 4.65
On Wed, Jan 03, 2007 at 07:01:24PM +0100, B. Johannessen said:
> Wakko Warner wrote:
> > # perl -e 'print "Its 0\n" if "" == 0'
> > Its 0
> > Case closed =)
>
> echo 'main(){if(0=="")printf("Its 0\n");}' | gcc -w -x c - && ./a.out
>
> Case re-opened :-)


But:

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
char *p = NULL;
printf ("p is %d\n", (int)p);
exit(0);
}

> Seriously though, I think the best solution to this is to bring back the
> previous behavior. There are clearly a lot of configurations in the wild
> that depends on this (I probably have some myself), and a minor
> dot-release is not the right time for such a change. Logging a warning
> would probably also be appropriate.


Agreed, or perhaps only when debugging expansions, as others have noted.
--
--------------------------------------------------------------------------
|  Stephen Gran                  | Everyone is in the best seat.   -- John |
|  steve@???             | Cage                                    |
|  http://www.lobefin.net/~steve |                                         |

--------------------------------------------------------------------------