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.
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)).
I should probably just Google this, but how did you define the functions?
5 replies →