|
1.
|
|
|
Labels & Control Flow
|
|
|
|
ラベルと制御フロー
|
|
Translated and reviewed by
Koichi Akabe
|
|
|
|
Located in
../../source/label.rst:5
|
|
2.
|
|
|
Label Statement
|
|
|
|
label ステートメント
|
|
Translated and reviewed by
Koichi Akabe
|
|
|
|
Located in
../../source/label.rst:8
|
|
3.
|
|
|
Label statements allow the given name to be assigned to a program point. They exist solely to be called or jumped to, whether by script code or the Ren'Py config. ::
|
|
|
|
label ステートメントは指定された名前にプログラム的な位置を代入します。それらは単にスクリプトコードや Ren'Py の設定から呼び出されたり、ジャンプされたりするために存在します。
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/label.rst:10
|
|
4.
|
|
|
A label statement may have a block associated with it. In that case, control enters the block whenever the label statement is reached, and proceeds with the statement after the label statement whenever the end of the block is reached.
|
|
|
|
label ステートメントはそれに関連づけられたブロックを持つでしょう。その場合その labe ステートメントに到達すると制御はそのブロックに入り、そのブロックの終端に到達すると label ステートメントの次のステートメントに移ります。
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/label.rst:21
|
|
5.
|
|
|
The label statement may take an optional list of parameters. These parameters are processed as described in PEP 3102, with two exceptions:
|
|
|
|
label ステートメントは任意で引数をとります。これらの引数は PEP 3102 で記述されたとおりに処理されますが、2つの例外があります :
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/label.rst:25
|
|
6.
|
|
|
The values of default parameters are evaluated at call time.
|
|
|
|
デフォルト引数の値は呼び出し時に評価されます。
|
|
Translated and reviewed by
Koichi Akabe
|
|
|
|
Located in
../../source/label.rst:28
|
|
7.
|
|
|
The variables are dynamically, rather than lexically, scoped.
|
|
|
|
変数は静的スコープではなく、動的スコープです。
|
|
Translated and reviewed by
Koichi Akabe
|
|
|
|
Located in
../../source/label.rst:29
|
|
8.
|
|
|
Jump Statement
|
|
|
|
jump ステートメント
|
|
Translated and reviewed by
Koichi Akabe
|
|
|
|
Located in
../../source/label.rst:34
|
|
9.
|
|
|
The jump statement is used to transfer control to the given label.
|
|
|
|
jump ステートメントは指定されたラベルに制御を移す場合に使用します。
|
|
Translated and reviewed by
Koichi Akabe
|
|
|
|
Located in
../../source/label.rst:36
|
|
10.
|
|
|
If the ``expression`` keyword is present, the expression following it is evaluated, and the string so computed is used as the label name of the statement to jump to. If the ``expression`` keyword is not present, the label name of the statement to jump to must be explicitly given.
|
|
|
|
``expression`` キーワードが存在すると、それに続く式が評価され、算出された文字列がジャンプ先のラベル名に使用されます。 ``expression`` キーワードが存在しないと、ジャンプ先のラベル名ははっきりと指定されなければなりません。
|
|
Translated and reviewed by
akakyouryuu
|
|
|
|
Located in
../../source/label.rst:38
|