← Back to context

Comment by kragen

5 days ago

Right, that's what Algol-58 functions were, too. I think FORTRAN also has a construct like this, but I forget.

FORTRAN had both functions and subroutines. A function returned a value and was invoked in an expression (eg. S=SIN(A)). A subroutine was invoked by calling it (eg. CALL FOPEN(FNAME, PERMS)).