Piotr Fusik wrote:
> No characters should be allowed in a subroutine prototype
> after an '@' (but not '\@'). This is because no arguments

and not in a [].

> can be effectively passed to a subroutine after an array argument.
> 
> I insist on an error, but a warning would be better than nothing.

One could add this check to "Malformed prototype", and error that
currently has absolutely no test. I don't even know how to generate it.
Anyone wants to try to write a test for it ?

Or, one could add the check in toke.c and raise the error "Illegal
prototype". More straightforward.

-- 
Fix in six / Fix in six / Sing all the perl-a-holics

Reply via email to