C bindings: typedef struct conflicts with method

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jul 22 23:26:47 PDT 2015


On 2015-07-23 03:57, Mike Parker wrote:

> In your case, rd_kafka_metadata is the name of the struct, but in C
> instances would need to be declared like so:
>
> struct rd_kafka_metadata instance;

Since the struct is declared directly in the typedef, is the struct name 
actually available?

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list