Re: [RFC] export TRUE and FALSE from someplace



muppet wrote:
...
what do you think?  is there anything else that we could toss into that bag to
make it more useful?

Ok, I'll stick my neck out.  Hack away.

I get really irritated at reading gtk code with it's swamp of magic constants. Here's my 'constants' file:

use constant 'True'   => 1;
use constant 'False'  => 0;

use constant 'Left'   => 0;
use constant 'Center' => 0.5;
use constant 'Right'  => 1;
use constant 'Top'    => 0;
use constant 'Bottom' => 1;

use constant 'Homogeneous' => 1;
use constant 'Variable'    => 0;

use constant 'NoFill'    => 0;
use constant 'Fill'      => 1;
use constant 'NoExpand'  => 0;
use constant 'Expand'    => 1;
use constant 'NoPadding' => 0;
use constant 'NoSpacing' => 0;

use constant 'DefaultDepth' => -1;

use constant 'Process_Event' => False;
use constant 'Block_Event'   => True;

1;




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]