5.4:Commands and Functions

コマンド(命令)とファンクション(関数)

You use commands and functions to perform the actions of your application. Commands instruct the application to do something – such as play a movie, display a window, or change a property. Functions compute a value – different functions might add a column of numbers, or get the fifteenth line of a certain file, or find out whether a key is being pressed.

コマンドとファンクションはアプリケーションの実行に使います。コマンドはアプリケーションに何かを実行するように指示します ー 例えば、ムーヴィーの再生、ウインドウの表示、プロパティの変更など、を指示します。ファンクションは値を計算します ー カラム内の数字を加算したり、あるファイルの14行目の内容を取得したり、キーボードのキーが押されたか否かを検知したり、します。