5.5.5:Variable Names

変数名

The names of variables must consist of a single word and may contain any combination of letters, digits, and underscores (_). The first character must be either a letter or an underscore. You cannot use any Revolution Transcript language word as a name of a variable.

変数の名前は、単語一つだけか、文字、数字、下線(_)の組み合わせでなければなりません。 レヴォルーション・トランスクリプト言語の単語は全て変数名としては使うことができません。

Here are some examples of
legal variable names:

以下は、変数名として有効なものの例です:

  someVariable
  picture3
  my_new_file
  _output

Here are some names that
cannot be used as variable names:

以下の例は、変数名としては使用できないものです:

  3rdRock -- illegal as starts with a digit(数字で始まっているため)
  this&That -- illegal as “&" cannot be used(&が変数名としては使えないため)
  My Variable –- illegal as it is more than one word(複数の単語で構成されているため;MyとVariableの間にスペースがあるため)

Avoid giving a variable the same name as a custom property. If you refer to a custom property, and there is a variable by the same name, Revolution uses the contents of the variable as the name of the custom property. Generally this will produce unexpected results.

変数名をカスタム・プロパティ名と同じものにしないでださい。カスタム・プロパティを参照する時、同じ名前の変数が存在すると、レヴォルーションは変数の内容をカスタム・プロパティの名前として扱ってしまいます。当然、こうすることは予期しないエラーの原因になってしまいます。

Caution: Global variables whose names begin with "gRev" are reserved by the Revolution development environment.

警告: 名前が「gRev」で始まるグローバル変数は、レヴォルーション開発環境で予約されています。

See the section on
Good Design Recommendations for advice on choosing variable names.

変数名をつけるときの注意事項については、Good Design Recommendationsセクションをご覧下さい。