[Xcb] XCBImage

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Tue Mar 15 00:17:07 PST 2005


>
> > anyway, i prefer separate declaration and initialization. I know that i've
> > read something about that, but i can't remember what it is.
>
> Initialization at definition time (alt. definition at
> declaration time) is always best if you can manage it.  It
> ensures that you never try to use an uninitialized object
> (alt. mismatch the definition and declaration).

Raster's answer :

"never initialise a variable with something OTHER than a constant - always
leaver
uninitialised, if you will fill it later before use anyway, or fill it
with a
constant. don't fill it with the contents of other variables or the
returns of
functionds."

Vincent


More information about the xcb mailing list