Re: Namespace request

* Ross McFarland <rwmcfa1 neces com> [2005-04-07 16:05]:
if the C code is included in your perl module and bound with XS
then it belongs in the Ex namespace. Ex is for selfcontained
add on type stuff. non-Ex name spaces are for bindings of
external modules.

To reiterate the lengthy discussion we kicked off back then, the
intent was for Gtk2::Ex to exist as a place for Perl-specific
Gtk2 extensions, say Gtk2::Ex::Foo, that should be guaranteed
never to collide with any possible future gtk+ widget called
gtkfoo, which would be bound as Gtk2::Foo.

So when you are binding widgets which can be used in programs
written in another language (read: C libraries), they go in
Gtk2::. When you are writing widgets which will only exist in the
form of a Perl module, regardless of whether they involve XS or
not, they go in Gtk2::Ex::.

âLike punning, programming is a play on words.â
   â Alan J. Perlis, âEpigrams in Programmingâ

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