[cairo] "operator" keyword in libcairo

Bill Spitzak spitzak at d2.com
Wed Jan 19 15:15:00 PST 2005



Carl Worth wrote:

> I can accept that if there's no other way, but I don't have to like
> it. I really prefer to have consistent naming for a line of code like:
> 
> 	cairo_operator_t operator = CAIRO_OPERATOR_OVER;
> 
> I'd almost prefer to find a substitute word rather than do
> inconsistent abbreviation like:
> 
> 	cairo_operator_t op = CAIRO_OPERATOR_OVER;
> 
> But "operator" really is the right word, (both mathematically and from
> following the Porter/Duff paper).

You probably won't like this, but it would be consistent to do this:

	cairo_op_t op = CAIRO_OP_OVER;



More information about the cairo mailing list