<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt">Can anyone explain what's going on with this in m_pd.h:<br><br>typedef struct _scalar /* a graphical object holding data */<br>{<br> t_gobj sc_gobj; /* header for graphical object */<br> t_symbol *sc_template; /* template name (LATER replace with pointer) */<br> t_word sc_vec[1]; /* indeterminate-length array of words */<br>} t_scalar;<br><br>How is a static t_word array of size 1 an indeterminate-length array? Is its placement as the last member of the struct required?<br><br>I see lots of mysterious casts in the internals of Pd's data structures. What's the trick here, and is it documented anywhere on the
interwebs, a C standard doc, etc.?<br><br>Thanks,<br>Jonathan<br><div><br></div></div></body></html>