Current, all the subroutine or functions, say, give it a name super_read
, it has to take in the arguments, and set the value to x as below,
x = super_read( argument 1, argument 2, argument 3, ...)
or
call super_read( argument 1, argument 2, argument 3, ..., x)
However the intrinsic read
function for example, has the structure like below
read(5,*) x
You know it just take the arguments 5 and *, and operate on x. You know the x is outside the ()
.
Now, can we also define function, say super_read
, and it works like below, you know similar with the intrinsic read
?
super_read( argument 1, argument 2, argument 3, ...) x
You know you give super_read
all the arguments, then it operate on x. The x is outside the ()
.
I mean, if I do not like the intrinsic read
function, I can define my own super_read
function like above.