一連の処理をひとまとめにするサブルーチンを使いこなせば、書く内容がスマートになるし修正も入れやすいです。 しかし、どの部分をサブルーチンにすれば良いか判断がつかないことも多いはず。 今回は、コードをスマートにしたい人のために ...
のように記述して、呼び出し側からはPerformで、サブルーチンプールのサブルーチンを呼び出します。 サブルーチンプールを使用することで、コードの重複を減少させ、保守性を向上させることができます。また、複数のプログラムで同じコード断片を使用 ...
{ "image" : null, "slug" : "32/2013/7/6/Use-the-logical-or-and-defined-or-operators-to-provide-default-subroutine-variable-behaviour", "title" : "Use the logical-or ...
There are two types of subroutine: Procedures perform a specific task but do not return a value. Functions manipulate data and return a value to the main program. A local variable is a variable that ...
A procedure is run by calling it. To call it, a programmer uses the procedure name and includes any parameters (values) that the procedure needs, for example: SUBROUTINE f_TO_c(temperature_in_f) ...
Abstract: In component-based software engineering programs are constructed from pre-defined software library modules. However, if the library's subroutines do not exactly match the programmer's ...