OSDN Git Service

2014/02/07 更新
[bacon/BaCon-Japanese.git] / 関数・命令 / LOCAL.txt
index ccd5cda..009a823 100644 (file)
@@ -1,32 +1,29 @@
-  LOCAL
+LOCAL
 
-   LOCAL <var>[,<var2>][,<var3>][,...] [TYPE <c-type>] [ARRAY <size>]
+LOCAL <var>[,<var2>][,<var3>][,...] [TYPE <c-type>] [ARRAY <size>]
 
-   Type: statement
+Type: statement
 
-   This statement only has sense within functions, subroutines or records.
-   It defines a local variable <var> with C type <type> which will not be
-   visible for other functions, subroutines or records, nor for the main
-   program.
+FUNCTION・SUB・レコード内で有効な変数を設定します。
+LOCAL で設定された変数 <var> は他の FUNCTION・SUB・レコード および
+メインプログラムでは参照できません。
 
-   If the TYPE keyword is omitted then variables are assumed to be of
-   'long' type. If TYPE is omitted and the variablename ends with a '$'
-   then the variable will be a string.
+TYPE で設定する型 <c-type> は C 言語の型です。
+省略されている場合は long 型になります。
+<var> の最後に $ が含まれ、TYPE が省略されている場合は文字列として扱います。
 
-   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 を用いて変更する事ができます。
 
-   Example:
+:
 
    LOCAL tt TYPE int
    LOCAL q$
    LOCAL new_array TYPE float ARRAY 100
    LOCAL 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:
+, を区切りとして同じ型を持つ復数の変数を設定できます。
+またポインタ型を使用する場合は変数の頭に * を付けます。
 
    LOCAL x, y, z TYPE int
    LOCAL *s, *t TYPE long
-