OSDN Git Service

2014/02/07 更新
[bacon/BaCon-Japanese.git] / 関数・命令 / GLOBAL.txt
index 348e2d0..c430b93 100644 (file)
@@ -1,31 +1,28 @@
-  GLOBAL
+GLOBAL
 
-  【1.0 build 10 追加】
-   GLOBAL <var>[,<var2>,<var3>,...] [TYPE]|ASSOC <c-type> | [ARRAY <size>]
+【1.0 build 10 追加】
+GLOBAL <var>[,<var2>,<var3>,...] [TYPE]|ASSOC <c-type> | [ARRAY <size>]
 
-   Type: statement
+Type: statement
 
-   Explicitly declares a variable to a C-type. The ASSOC keyword is used to
-   declare associative arrays. This is always a global declaration, meaning
-   that variables declared with the GLOBAL keyword are visible in each part
-   of the program. Use LOCAL for local declarations.
+C 言語の形式で変数を設定します。ASSOC は配列の設定に用います。
+これは広域な設定となります。
+GLOBAL で設定した変数はプログラムの各所で参照できます。
+ローカル設定には LOCAL を使用します。
 
-   The ARRAY keyword is used to define a dynamic array, which can be
-   resized with REDIM at a later stage in the program.
+ARRAY で配列数を指定する事ができます。
+REDIM を用いてこの数を変更する事が可能です。
 
-   Optionally, within a SUB or FUNCTION it is possible to use GLOBAL in
-   combination with RECORD to define a record variable which is visible
-   globally.
+SUB・FUNCTION で GLOBAL を使用した場合、
+RECORD で値を指定して使用する事が可能です。
 
    GLOBAL x TYPE float
    GLOBAL q$
    GLOBAL new_array TYPE float ARRAY 100
    GLOBAL name$ ARRAY 25
 
-   Multiple variables of the same type can be declared at once, using a
-   comma separated list. In case of pointer variables the asterisk should
-   be attached to the variable name:
+, を区切りとして同じタイプの変数を複数個設定できます。
+ポインター型変数の場合は変数名の頭に * を付けます。
 
    GLOBAL x, y, z TYPE int
    GLOBAL *s, *t TYPE long
-