<div dir="ltr">Plus, in C there's no way to correctly annotate a function like cairo_reference(). In C++ you can define a version taking const and a non-const version. In C, you can't.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 17, 2017 at 10:44 AM, Lawrence D'Oliveiro <span dir="ltr"><<a href="mailto:ldo@geek-central.gen.nz" target="_blank">ldo@geek-central.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 17 Feb 2017 09:01:44 -0800, Bryce Harrington wrote:<br>
<br>
> Perhaps at that time the usefulness of<br>
> const'ing parameters was not held as a consensus of the developers at<br>
> that time.<br>
<br>
</span>You have to distinguish between interface and implementation. C doesn’t<br>
offer any way to say that any modifications to the object are not<br>
visible to the user.<br>
<div class="HOEnZb"><div class="h5">--<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="https://lists.cairographics.org/mailman/listinfo/cairo" rel="noreferrer" target="_blank">https://lists.cairographics.<wbr>org/mailman/listinfo/cairo</a></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">behdad<br><a href="http://behdad.org/" target="_blank">http://behdad.org/</a></div>
</div>