Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, 言語解説書

LIMITED 属性

LIMITED 属性は、入り口変数がネストされていない入り口定数だけを値として持つことを表します。 LIMITED ではない入り口変数は、入り口定数を値として持つことができます。

構文図を読む構文図をスキップする>>-LIMITED-----------------------------------------------------><
 

Example: proc options(reorder reentrant);
dcl (Read, Write) entry;
dcl FuncRtn(2) entry limited
static init (Read, Write);

 
dcl (Prt1) entry;
dcl PrtRtn(2) entry variable limited
static init (Prt1,       /*  legal    */
             Prt2);      /*  illegal  */
Prt2: proc;

·
·
·
end Prt2; end Example;

LIMITED 静的入り口変数は、ネストされていない入り口定数の値を使用して 初期設定できます。こうすれば、より効率的なコードを生成できます。 また、LIMITED 静的入り口変数は、LIMITED ではない入り口変数よりも小さいストレージを使用します。


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)