package core_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

See documentation in Flags_intf.

module type Make_arg = Flags.Make_arg
module type S = Flags.S
val create : bit:Base.Int.t -> Int63.t

create ~bit:n creates a flag with the nth bit set. n must be between 0 and 62.

Typically a flag has one bit set; create is useful in exactly those cases. For flags with multiple bits one can either define the Int63.t directly or create it in terms of simpler flags, using + and -.

module Make (M : Flags.Make_arg) : sig ... end

Flags.Make builds a new flags module. If there is an error in the known flags, it behaves as per on_error.

OCaml

Innovation. Community. Security.