In light of the a recent bug with the run time call by reference
examples. I started going through and finding the examples that
have used the &$var syntax.
I was thinking, perhaps the proto should reflect that that
the parameter is passed by reference:
array getimagesize ( string filename [, array &imageinfo])
I can think of two solutions that could work:
Adding an attribute to the <parameter>:
<parameter option="ref">imaginfo</parameter>
With the common.xsl:
<xsl:template match="methodparam/parameter">
<xsl:if test="@option='ref'">
<xsl:text>&</xsl:text>
</xsl:if>
<xsl:apply-templates />
</xsl:template>
Or simply adding & the the paramater value.
Any comments on this?
Curt
--
"I used to think I was indecisive, but now I'm not so sure."