[cairo] Const correctness?

Behdad Esfahbod behdad at cs.toronto.edu
Fri Feb 17 19:07:56 UTC 2017

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.

On Fri, Feb 17, 2017 at 10:44 AM, Lawrence D'Oliveiro <
ldo at geek-central.gen.nz> wrote:

> On Fri, 17 Feb 2017 09:01:44 -0800, Bryce Harrington wrote:
> > Perhaps at that time the usefulness of
> > const'ing parameters was not held as a consensus of the developers at
> > that time.
> You have to distinguish between interface and implementation. C doesn’t
> offer any way to say that any modifications to the object are not
> visible to the user.
> --
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20170217/53c5601f/attachment.html>

More information about the cairo mailing list