[PD-dev] shared class data and functions

Claude Heiland-Allen claude at mathr.co.uk
Thu Nov 15 00:15:45 CET 2012


On 14/11/12 23:07, Jonathan Wilkes wrote:
> Second, (t_foo *)x->member will give me an error: "t_text has no member
> named x_member".  I don't understand

I guess it's precedence[0]?

(T *)x->m

equals:

(T *)(x->m)

when you really want:

((T *)x)->m


Claude

[0]
http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B#Operator_precedence

-- 
http://mathr.co.uk



More information about the Pd-dev mailing list