Re: [code-review] considerations with modular XS and short namespaces

Adrian Howard <adrianh-/[email protected]> Mon, 1 Mar 2004 15:48:46 +0000
Newsgroups gmane.comp.lang.perl.code-review-ladder
Message-ID <[email protected]>
On 1 Mar 2004, at 10:27, Tassilo von Parseval wrote:
[snip]
> Ideally, I'd release a Device::CDROM that only provides those things
> common to all platforms (like the various addressing modes, track 
> layout
> etc of a CDROM drive) and encapsulate the platform specific things in
> other modules (such as Device::CDROM::Solaris) that need to be obtained
> separately from the CPAN. The actual methods (e.g.
> Device::CDROM::read_audio and all the others) become abstract methods.
[snip]

This sounds very much like the same problem faced with DBI (database 
independant API + database specific optional functions). You might want 
to consider a similar DBI/DBD type distinction.

Adrian