Re: [RFC] export TRUE and FALSE from someplace



muppet said:

i have grown very annoyed of needing to add

  use constant TRUE => 1;
  use constant FALSE => 0;

atop every gtk2-perl program i write.  it would, of course, be Very Bad for us
to export TRUE and FALSE by default from Glib, but it would please me to no
end to have them available simply, e.g.,

  use Glib ':constants';

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

i would have no objections to it so long as
    use Glib qw/TRUE FALSE/
worked as well and it didn't interfere with '-init'. (obvious things, but i'm
in that kinda of mood)

-rm



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