Hi again,

maybe I'm blind or I don't know but how do I assign a value to a struct
member?

This code:
cdef plugData *data = <plugData*>malloc(sizeof(plugData))
data.ident = "foo"

with this definition of plugData:
ctypedef struct plugData:
        plugDefinition *plug
        char *ident
        void *data

generates an error:
"Object of type 'plugData' has no attribute 'ident'"

What's wrong with this?

Thanks
Johannes

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to