develooper Front page | perl.perl6.language | Postings from August 2000

RFC 55 (v1) Compilation: Remove requirement for fina

Thread Next
From:
Perl6 RFC Librarian
Date:
August 7, 2000 07:28
Subject:
RFC 55 (v1) Compilation: Remove requirement for fina
Message ID:
20000807142803.14936.qmail@tmtowtdi.perl.org
This and other RFCs are available on the web at
  http://dev.perl.org/rfc/

=head1 TITLE

Compilation: Remove requirement for final true value in require'd and do'ed files

=head1 VERSION

  Maintainer: Damian Conway <damian@conway.org>
  Date: 7 August 2000
  Version: 1
  Mailing List: perl6-language@perl.org
  Number: 55

=head1 ABSTRACT

This RFC proposes that files compiled via a C<require> or a C<do> no longer
be required to end in a true value.

=head1 DESCRIPTION

It is proposed that the final value in a file that is compiled using
C<require> or C<do> no longer be significant.

Instead it is proposed that files that wish to fail during compilation
should throw an exception. Furthermore, any valueless exception (i.e.
thrown with a simple C<die;>) that propagates through a C<require> or
C<do> should automatically take the appropriate message string:

        "require failed: file "%s" threw an exception"

        "do failed: file "%s" threw an exception"

Note that exceptions with some value would be passed through unchanged,
allowing a compiled file to signal exactly why it failed.

=head1 IMPLEMENTATION

Dammit, Jim, I'm a doctor, not an engineer!


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About