POV-Ray : Newsgroups : povray.unofficial.patches : Step function : Re: Step function Server Time
14 May 2024 23:32:00 EDT (-0400)
  Re: Step function  
From: Ron Parker
Date: 23 Aug 2000 09:21:00
Message: <slrn8q7kmh.1ta.ron.parker@fwi.com>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.