[% setvar title Eliminate the optional C for C etc block declarations %]

This file is part of the Perl 6 Archive

Note: these documents may be out of date. Do not use as reference!

To see what is currently happening visit http://www.perl6.org/

TITLE

Eliminate the optional sub for BEGIN etc block declarations

VERSION

  Maintainer: Peter Scott <peter@psdt.com>
  Date: 8 Aug 2000
  Last Modified: 29 Aug 2000
  Mailing List: perl6-language@perl.org
  Number: 68
  Version: 2
  Status: Frozen

ABSTRACT

The sub keyword is currently optional on BEGIN, END, CHECK, INIT. Almost certainly no-one ever uses it. It should be eliminated as an option.

DESCRIPTION

BEGIN etc have special semantics making them different from ordinary subroutines; telling the user that they can use the sub keyword gives a false impression.

IMPLEMENTATION

Obvious.

REFERENCES

"Package Constructors and Destructors" in perlmod