[Top][All Lists]

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

Re: [Tinycc-devel] Buiding binutils 2.17 (needs dynamic arrays).

From: Antti-Juhani Kaijanaho
Subject: Re: [Tinycc-devel] Buiding binutils 2.17 (needs dynamic arrays).
Date: Wed, 3 Oct 2007 10:28:17 +0300
User-agent: Mutt/1.5.16 (2007-06-11)

On Wed, Oct 03, 2007 at 02:12:27AM -0500, Rob Landley wrote:
> P.S.  I'm still boggling you can do "int a[42], b(char *c);"  But apparently, 
> yes you can.

Sure you can.  Of course, I wouldn't allow any of my students write
stuff like that :)

> Unfortunately, in tcc you can _also_ do:
>   int blah(char a)(char b);
> And it happily takes it.  (I note that gcc has a specific error for this.  Of 
> course gcc has a specific error for everything.)

That's, I *think* declaring a function that returns a function.  Yes,
there should be an error message :)

> Sigh.  So...  many... corner... cases...!

The standard is useful in that it tells you how to handle (most) of them

Antti-Juhani Kaijanaho, Jyväskylä, Finland

reply via email to

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