<div dir="ltr">+1 to the idea and Brad's suggestion!<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 6, 2016 at 11:12 AM, David Thompson <span dir="ltr"><<a href="mailto:david.thompson@kitware.com" target="_blank">david.thompson@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>1. I assume that attributes are allowed prior to function parameters... from the spec it was not immediately obvious. For example, what about this method:<br></div><div><br></div><div>VTK_SIZEHINT(sz) double* findOrAddEntries(</div><div>    int key, int sz, VTK_SIZEHINT(sz) double* vals);</div><div><br></div><div>that both accepts and returns a variable-length array (of length sz, one of the other parameters)?</div></div></blockquote><div><br></div><div>Does this sort of pattern occur in VTK a lot? AIUI, the current hints file only allows fixed-length arrays and is not dependent on other variables to get the size.</div><div><br></div><div>For (fixed-size) array parameters, it seems the parser should be able to pull the information out of the declaration if the 'type var[sz]' notation is used instead just 'type *var':</div><div><br></div><div>void SetPoint(vtkIdType i, float point[3]);</div><div><br></div><div>would let the parser know that 'point' is an array of 3 floats. Not sure if it does this already?</div><div><br></div><div>Dave</div></div></div></div>