that seems like a bad choice because repetitive code like this is the easiest code to get wrong if you really access the fields all that often  which surprises me you can always add accessor functions like pid t pid return mdata pid 