in reply to Re^3: Prototype for constant items???
in thread Prototype for constant items???
So prototypes are only a crippled mechanism.
The fact that you can restrict to scalarrefs of $variables with \$ but not to refs of literals is an obvious gap in the definition, which you can't deny.
The possibility to warn about errors like in join @a,@b could make perl much more user friendly.
I don't even see a possibility to warn about this at runtime!!!
(well except magic things like using caller to parse the calling the line of code)
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Prototype for constant items???
by moritz (Cardinal) on Sep 25, 2009 at 14:04 UTC |