[PD] t_scalar member sc_vec

Ivica Bukvic ico at vt.edu
Fri Feb 21 15:00:10 CET 2014


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" <cg at 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 at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20140221/ba364c46/attachment.htm>


More information about the Pd-list mailing list