in reply to Prototype for constant items???
I'd like to construct a prototype which checks at compile time for a "real scalar value" instead of forcing scalar context.
I'd be surprised if that was possible. It also begs the question what to do with test1 other_function
if not forcing scalar context onto other_function. Since context propagates inwards in Perl 5, other_function has to be called in some context, forcing the the return value of other_function to be in that context.
What do you need that feature for? It might be an XY Problem
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Prototype for constant items???
by LanX (Saint) on Sep 25, 2009 at 13:13 UTC | |
by moritz (Cardinal) on Sep 25, 2009 at 13:37 UTC | |
by LanX (Saint) on Sep 25, 2009 at 13:52 UTC | |
by moritz (Cardinal) on Sep 25, 2009 at 14:04 UTC |