|
|
On Tue, 22 Aug 2000 21:53:40 -0500, Chris Huff wrote:
>Maybe the return value should be the first expression not
>preceded by an expression which is using it, and not followed by =, +=,
>-=, --, or ++. So if the parser encounters an equation is just sitting
>there alone, not being used as input to if(), while(), or anything, or a
>variable which is not being modified, it would be used as the return
>value.
Perl uses the value of the last evaluated expression as the return value.
Could that work?
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
|