AdjectiveMask (定数)
public constant AdjectiveMask:Type =uint64
パッケージ: CURL.LANGUAGE.COMPILER

BindingAdjective 値のセットを示します。

説明

BindingAdjective 値のセットを整数で表し、これは pop-definition-attributes で使用するビットマスクを意味します。一般的に使用されるいくつかの形容属性 (adjective) のセットは、定数としてすでに指定されています。



各形容属性は、形容属性のインデックス値に対応する整数のビットを使用して表します。したがって、マスクはビット演算子を使用して操作できます。たとえば、2 個のマスクの合体は bit-or を使用して形成できます。

let constant proc-attributes:AdjectiveMask =
    {bit-or 
        global-procedure-attributes,
        class-procedure-attributes
    }


各値インデックスをビットシフトすることにより、個々の形容属性からマスクを作成できます。例を次に示します。

let constant mask-1:AdjectiveMask = 1
let constant override-attributes:AdjectiveMask =
    {bit-or
        {bit-sll mask-1, BindingAdjective.open.index},
        {bit-sll mask-1, BindingAdjective.sealed.index},
        {bit-sll mask-1, BindingAdjective.final.index}
    }