<p dir="ltr">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).</p>
<div class="gmail_quote">On Feb 21, 2014 7:26 AM, "Charles Goyard" <<a href="mailto:cg@fsck.fr">cg@fsck.fr</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Sorry for this question, but why isn't sc_vec a good old pointer ?<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>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>