in reply to Re^4: I'm trying to consolidate my functions into subroutines
in thread I'm trying to consolidate my functions into subroutines
Is there really any formal distinction here in any language?
Certainly in Fortran at least there is. The declarative statements FUNCTION and SUBROUTINE define two different types of subprogram. The former returns a value and is invoked like
X = SIN(Y)whereas the latter does not and is invoked like
CALL RANDOM_NUMBER(A)They serve distinct purposes. HTH.
|
|---|