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

Lies in education [was Re: The "loop and a half"]

Gregory Ewing <greg.ewing at canterbury.ac.nz> writes:

> bartc wrote:
>>     tokenrec * (*)[]
>> the original source and that type is written like this:
>>     ref [] ref tokenrec
> The idiomatic way to write that type in C would be
>    tokenrec **

That's a different type.  I think you mean that a human writing C
(rather than bartc's code generator) would probably design the code to
use tokenrec ** then I agree, but the latter is not just a different way
to write the former.