X header help

John Reimer terminal.node at gmail.com
Sat Mar 11 23:10:06 PST 2006


Unknown W. Brackets wrote:
> IMHO, in the case of function pointers typedefs usually make sense.
> 
> -[Unknown]
> 
> 
>> Lucas Goss wrote:
>>> Unknown W. Brackets wrote:
>>>> The important thing here is the typedef; the way you tried doesn't 
>>>> specify this is a type, but is more like defining a variable.
>>>
>>> Ah, right. Thanks, that helped.
>>
>> Actually the C typedef I believe is more like the D alias.


It's safer/easier to use "alias" when converting from C typedef. 
typedef are so type safe that they cause tons of problems when creating 
a D interface to C code.  For strict D use, of course, typedef's are great.

-JJR



More information about the Digitalmars-d mailing list