Lambda syntax, etc

Bill Baxter wbaxter at gmail.com
Wed Feb 4 22:32:25 PST 2009


On Thu, Feb 5, 2009 at 3:20 PM, Nick Sabalausky <a at a.a> wrote:
>> K&R was like
>>     int add(x,y)
>>        int x;
>>        int y;
>>     {  return x+y }
>>
>
> Oh that's right, I knew it was something funky like that. (That would be a
> "bad redundancy". /me nods to Walter's Dobbs article.)

Well the nice thing about it was you could do this:

     int add(x,y)
        CrazyLongTypeName x,y;
     {  return x+y }

Thereby removing some bad redundancy.

--bb



More information about the Digitalmars-d mailing list