sreturn.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 44 行
GML
44 行
.section RETURN Statement
.*
.mbox begin
RETURN [e]
.mbox end
.synote
.mnote e
is an integer expression.
.endnote
.np
A
.kw RETURN
statement is used to terminate execution of a subprogram and return
control to the program unit that referenced it.
.xt on
As an extension to FORTRAN 77, &product permits the use of the
.kw RETURN
statement in the main program.
When a
.kw RETURN
statement is executed in the main program, program execution
terminates in the same manner as the
.kw STOP
or
.kw END
statement.
.xt off
.np
The expression
.id e
is not permitted when returning from an external function subprogram
(or main program);
it can only be specified when returning from a subroutine subprogram.
.exam begin
FUNCTION ABS( A )
ABS = A
IF( A .GE. 0 )RETURN
ABS = -A
RETURN
END
.exam end
.np
For more information, see the chapter entitled :HDREF refid='fsubp'..
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?