[cairo] cairo_matrix_t
Mathieu Lacage
Mathieu.Lacage at sophia.inria.fr
Fri Nov 5 01:28:49 PST 2004
On Thu, 2004-11-04 at 14:34 -0500, Owen Taylor wrote:
> 'const' is often a useful solution for this problem, especially for
> things like matrices that are basically like structures. I did that
> for PangoMatrix. It doesn't work everywhere though.
const foo_matrix_t foo_peek_matrix () is what I grew used to do in such
cases. I find the naming convention great because it allows me to read
code which I have no knowledge about and understand its memory-
allocation strategy without having to read header files to scan for
const keywords or, worse, documentation.
my 2 cents,
Mathieu
--
More information about the cairo
mailing list