On Sat, 22 Jan 2005 19:09:27 +0100 Pieter Van den Abeele <[EMAIL PROTECTED]> wrote: | On 22 Jan 2005, at 18:12, Ciaran McCreesh wrote: | | > Uhm. It's quite easy to do package specific code in eclasses too. | > If you'd ever worked upon an eclass which affects many packages | > you'd know this. | | Package specific code in an eclass is contrary to the spirit of object | oriented programming. | It should be an exception rather than a default.
True. On the other hand, eclasses aren't object oriented programming (although they contain certain aspects similar to very simple oop), and there're times when a $PN-based thing is damned useful. Really, it depends upon the nature of the eclass. For something like vim.eclass, not doing $PN-things would be silly. On the other hand, for vim-plugin.eclass, $PN-based things would be a mess. -- Ciaran McCreesh : Gentoo Developer (Vim, Fluxbox, shell tools) Mail : ciaranm at gentoo.org Web : http://dev.gentoo.org/~ciaranm
pgp7Laeou9CM8.pgp
Description: PGP signature
