5.1.8:Compiling
a Script
スクリプトのコンパイル
A script is compiled when you change the script either by
clicking Apply
in the script
editor (or, if altering a script from another script, using
the set
command). During
compilation, the entire script is analyzed.
スクリプト・エディタでをApplyクリックしてスクリプトを変更したり(setコマンド使って他のスクリプトからスクリプトを変更するかで)、スクリプトはコンパイルされます。スクリプトはコンパイル中に全て分析されます。
If a compile error is found when a script is being
compiled, the entire script is unavailable for execution
until the error is corrected and the script is re-compiled.
This applies only to compile errors. If an execution error
occurs during the execution of a handler, it does not
affect the ability to use other handlers in the same
script. For more information on dealing with errors, see
the section on Debugging.
スクリプトのコンパイル中にコンパイル・エラーが発見されると、エラーが訂正され再度コンパイルされるまで、スクリプト全体が実行不可能状態になります。但し、これはコンパイル・エラーにのみ適用されることです。ハンドラの実行中に実行エラーが発生しても、同一スクリプト内の他のハンドラの実行には影響しません。エラー処理の詳細については、Debuggingセクションをご覧下さい。
You cannot change a script while a handler in it is
executing, because what is executed is the compiled
version, not the text in the script
property.
ハンドラ内のスクリプトが実行されている時には、スクリプトの変更はできません。というのは、実行されるスクリプトは、コンパイルされたものであり、スクリプト・プロパティの文字列ではないからです。