<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, &quot;Charles Goyard&quot; &lt;<a href="mailto:cg@fsck.fr">cg@fsck.fr</a>&gt; 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&#39;t sc_vec a good old pointer ?<br>
<br>
&gt;     t_gobj sc_gobj;         /* header for graphical object */<br>
&gt;     t_symbol *sc_template;  /* template name (LATER replace with pointer) */<br>
&gt;     t_word sc_vec[1];       /* indeterminate-length array of words */<br>
&gt; } t_scalar;<br>
&gt;<br>
&gt; 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 -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>