[cairo] API Shakeup: Consistent error handling for all objects

Ned Konz ned at squeakland.org
Wed Feb 23 14:09:16 PST 2005


On Wednesday 23 February 2005 1:56 pm, Carl Worth wrote:
> Additionally, I propose to extend the current scheme so that all create
> functions are also guaranteed to "work". That is, in the case of
> out-of-memory, the functions will return a pointer to a static
> in-error object.

Then the corresponding destructor/cleanup code must check for these static 
objects somehow, since clients won't necessarily know that they can't be 
managed like dynamically created objects.

-- 
Ned Konz
http://bike-nomad.com/squeak/



More information about the cairo mailing list