Because this way you can reference data points with sc_vec+n as opposed to dealing with single or double linked lists (since sc_vec can be an array). On Feb 21, 2014 7:26 AM, "Charles Goyard" <c...@fsck.fr> wrote:
> Hi, > > Sorry for this question, but why isn't sc_vec a good old pointer ? > > > t_gobj sc_gobj; /* header for graphical object */ > > t_symbol *sc_template; /* template name (LATER replace with > pointer) */ > > t_word sc_vec[1]; /* indeterminate-length array of words */ > > } t_scalar; > > > > 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? > > _______________________________________________ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list >
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list