On Saturday 26 May 2007 01:18:44 Nicholas Clark wrote:

> On Fri, May 25, 2007 at 07:20:07PM -0700, chromatic wrote:

> > Whoops, that just broke a couple of platforms.  As I understand it, some
> > picky compilers only allow simultaneous declarations and assignments at
> > the start of a function, not within any block.
>
> They wouldn't be C89 conformant if they forbid *that*.

Good; I couldn't find anything that suggested it violated C89.

> It may be something to do with the const *char const, what type "" string
> constants have (according to the particular compiler) and how fussy it is.
>
> And we found bugs in (at least) Borland's compiler to do with this sort of
> thing.

That's what I was thinking.  Steve?

-- c

Reply via email to