This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: A little bit of C fun...
- From: "Austin, Alex" <Alex dot Austin at spectrumdsi dot com>
- To: John Carter <john dot carter at tait dot co dot nz>, me22 <me22 dot ca at gmail dot com>
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 22 Oct 2008 15:12:32 -0500
- Subject: RE: A little bit of C fun...
- Accept-language: en-US
- Acceptlanguage: en-US
- References: <alpine.DEB.1.00.0810221735040.30487@parore.tait.co.nz><fa28b925 0810212203u51a1da18n13ae93aabde567a0@mail.gmail.com> <alpine.DEB.1.00.0810230830390.23033@parore.tait.co.nz>
A guess:
b is a type, and a is a function that takes a pointer to a function that returns b?
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of John Carter
Sent: Wednesday, October 22, 2008 2:38 PM
To: me22
Cc: gcc-help@gcc.gnu.org
Subject: Re: A little bit of C fun...
On Wed, 22 Oct 2008, me22 wrote:
> Use the preprocessor. Otherwise you can't get braces inside parens.
Nope. I didn't use preprocessor. But warped kudos to you for thinking
of it.
Since you are all struggling, I'll make it easier for you.
I shorten it by one character....
a(&(b){})
... (but then it does something subtly more that the previous
one...oooh I'm evil!)
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : john.carter@tait.co.nz
New Zealand