Re: [RFC] export TRUE and FALSE from someplace



muppet wrote:

as a contrived example: at a glance, which of the arguments to Gtk2::Box::pack_start is the integer padding value?

  $box->pack_start ($widget1, 0, 0, 0);
  $box->pack_start ($widget2, 1, 1, 1);

it's a lot easier to tell with

  $box->pack_start ($widget, FALSE, FALSE, 0);
  $box->pack_start ($widget, TRUE, TRUE, 1);


How about:

$box->pack_start ($widget, "TRUE", "TRUE", 1);

Doesn't help with the FALSE case, but it's a 50% improvement :)




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