Peter Scott <[EMAIL PROTECTED]> wrote:
>At 07:12 PM 2/1/01 -0600, David L. Nicol wrote:
>>I recalled hearing about a language (was it java?) where
>>you set the return value of a function (was it VB?) by
>>assigning to the name of the function within the function body,
>>so the last line would be
>>
>>         fname=rval;
>>
>>or fname could be used instead of rval all through it.
>
>Ah, an homage to Pascal :-)

More like Fortran:
       REAL FUNCTION FOO(A)
       REAL A
C
       FOO = 2*A+3
       RETURN
       END
^^^^^^^
 note exactly 7 spaces...

And I think Fortran has a better claim to priority ;)
--
 Drexel University       \V                    --Chuck Lane
======]---------->--------*------------<-------[===========
     (215) 895-1545     _/ \  Particle Physics
FAX: (215) 895-5934     /\ /~~~~~~~~~~~        [EMAIL PROTECTED]

Reply via email to