Before anyone writes an RFC on names sub parameters, they should look
at the archives of perl5-porters where it has been discussed a fair amount.

A sample of what appeared to be rough-consensus syntax then:

        sub myfoo(Dog $spot : alias, String $str : readonly, $bar);

Note the (more-or-less existing in v5.6.0) optional type declarations and
attribute lists.  In particular, note ":alias" to keep the current p5 $_[0]
aliasing in effect for the one parameter.

That sample pulls together enough of what was discussed that it probably
actually goes a bit beyond what had been rough consensus after all, but
it should serve to help keep from re-hashing *all* of the same old ground
over again.

-- 
Spider Boardman (at home)                     [EMAIL PROTECTED]
The management (my cats) made me say this.    http://www.ultranet.com/~spiderb
PGP public key fingerprint: 96 72 D2 C6 E0 92 32 89  F6 B2 C2 A0 1C AB 1F DC

Reply via email to