Re: [RFC] export TRUE and FALSE from someplace



On Tue, 2004-01-20 at 15:30, muppet wrote:
Ross McFarland said:
i would have no objections to it so long as
    use Glib qw/TRUE FALSE/
worked as well

would merely require them being both in @EXPORT_OK and %EXPORT_TAGS, which was
the plan.

basically, i was wondering if people thought it was a good idea.  other
constants like G_PRIORITY_* (basically, anything that doesn't fit nicely in
GEnum/GFlags stuff) would be good candidates for the :constants tag.


and it didn't interfere with '-init'.

you'd do Gtk2 separately, e.g.

  use Glib ':constants';
  use Gtk2 -init;

wasn't paying close enough attention. the only thing i got against it is
that you'll have use Glib when you wouldn't before.

to get ridiculous while we're thinking about constant stuff, would it be
advantageous or desirable to define exportable constants for things like

  use constant GTK_STOCK_OK => 'gtk-ok';

i'd rather not go that far, but will bow to the greater desire.

-rm




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