Front page | perl.perl6.stdlib |
Postings from September 2000
Re: RFC 289 (v1) Generate module dependencies easily
Thread Previous
|
Thread Next
From:
Curtis Jewell
Date:
September 25, 2000 00:56
Subject:
Re: RFC 289 (v1) Generate module dependencies easily
Message ID:
005201c026c6$18803790$71ecce80@DITRPated
This begs a question - How would this be implemented, knowing that at least
some MAJOR modules have what I call "run-time" dependencies, which are very
easy to do with Perl?
For example, what would this option think of DBI, for example, with it
loading DBD's based on subroutine parameters?
Or, say, from my own code, which does not REQUIRE Filesys::DiskSpace to
continue, but if it can use it, it does... is that really a dependency, and
how would the proposed tool/option know this?
my ($fs_type, $fs_desc, $kb_used, $kb_avail, $inodes_used, $inodes_avail);
eval 'use Filesys::DiskSpace; ($fs_type, $fs_desc, $kb_used, $kb_avail,
$inodes_used, $inodes_avail) = df "/home/devel/"';
if (!$@) {
if ($kb_avail < 20 * 1024) { # 20 MB left is our "warning signal"
$self->misdb_error("Unexpected connection problem: Low disk space.
Contact web site maintainer.");
return 1;
}
}
Or would this tool be restricted to compile-time dependencies only?
--
Curtis Jewell http://www.geocities.com/curtis_whalen/ csjc05@mizzou.edu
http://new-york.utica.mission.net/ cjewell@mission.net
No matter where we fall or where we land | curtis@mlug.missouri.edu
I believe we're part of a master plan (from "Wonderland" on the Ptm2K OMPS)
----- Original Message -----
From: "Perl6 RFC Librarian" <perl6-rfc@perl.org>
To: <perl6-announce-rfc@perl.org>
Cc: <perl6-stdlib@perl.org>
Sent: Monday, September 25, 2000 01:02
Subject: RFC 289 (v1) Generate module dependencies easily
> This and other RFCs are available on the web at
> http://dev.perl.org/rfc/
>
> =head1 TITLE
>
> Generate module dependencies easily
>
> =head1 VERSION
>
> Maintainer: Adam Turoff <ziggy@panix.com>
> Date: 24 Sep 2000
> Mailing List: perl6-stdlib@perl.org
> Number: 289
> Version: 1
> Status: Developing
>
> =head1 ABSTRACT
>
> Perl6 should ship with a simple utility that shows all modules a program
> uses, and all modules those modules use.
>
> =head1 DESCRIPTION
>
> Tom Christiansen proposed this in his perl6storm message:
>
> =item perl6storm #0043
>
> Write something that spits out module dependencies. Like makedep.
> A tool that sources but doesn't run? a program/module then spits
> out %INC might suffice. Can we autobundle with CPAN tricks?
>
> This feature will be useful for quite a number of uses, including bundling
> modules for distribution, and generating snapshots of large Perl programs.
>
> =head1 IMPLEMENTATION
>
> This feature is probably best implemented through a standard module used
as
> a compiler backend.
>
> =head1 REFERENCES
>
> None.
Thread Previous
|
Thread Next