Documentation.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9040 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
5dcc6d8b6b
commit
579eb1e41e
|
@ -362,10 +362,15 @@ type positional_specification =
|
|||
Calling [got_spec] with appropriate arguments, we ``return'' a positional
|
||||
specification and an index to go on scanning the [fmt] format at hand.
|
||||
|
||||
We do not support [*$] specifications, since this would lead to type
|
||||
checking problems: a [*$] positional specification means ``take the next
|
||||
argument to [printf] (which must be an integer value)'', name this integer
|
||||
value $n$; [*$] now designates parameter $n$.
|
||||
Note that this is optimized for the regular case, i.e. no positional
|
||||
parameter, since in this case we juste ``return'' the constant
|
||||
[Spec_none]; in case we have a positional parameter, we ``return'' a
|
||||
[Spec_index] [positional_specification] which a bit more costly.
|
||||
|
||||
Note also that we do not support [*$] specifications, since this would
|
||||
lead to type checking problems: a [*$] positional specification means
|
||||
``take the next argument to [printf] (which must be an integer value)'',
|
||||
name this integer value $n$; [*$] now designates parameter $n$.
|
||||
|
||||
Unfortunately, the type of a parameter specified via a [*$] positional
|
||||
specification should be the type of the corresponding argument to
|
||||
|
|
|
@ -122,6 +122,7 @@ val bprintf : Buffer.t -> ('a, Buffer.t, unit) format -> 'a
|
|||
(see module {!Buffer}). *)
|
||||
|
||||
(** Formatted output functions with continuations. *)
|
||||
|
||||
val kfprintf : (out_channel -> 'a) -> out_channel ->
|
||||
('b, out_channel, unit, 'a) format4 -> 'b;;
|
||||
(** Same as [fprintf], but instead of returning immediately,
|
||||
|
@ -180,7 +181,10 @@ module CamlinternalPr : sig
|
|||
val sub_format :
|
||||
(('a, 'b, 'c, 'd, 'e, 'f) format6 -> int) ->
|
||||
(('a, 'b, 'c, 'd, 'e, 'f) format6 -> int -> char -> int) ->
|
||||
char -> ('a, 'b, 'c, 'd, 'e, 'f) format6 -> int -> int
|
||||
char ->
|
||||
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
|
||||
int ->
|
||||
int
|
||||
|
||||
val summarize_format_type : ('a, 'b, 'c, 'd, 'e, 'f) format6 -> string
|
||||
|
||||
|
@ -192,11 +196,14 @@ module CamlinternalPr : sig
|
|||
(Sformat.index -> 'i -> 'j -> int -> 'h) ->
|
||||
(Sformat.index -> 'k -> int -> 'h) ->
|
||||
(Sformat.index -> int -> 'h) ->
|
||||
(Sformat.index -> ('l, 'm, 'n, 'o, 'p, 'q) format6 -> int -> 'h) -> 'h
|
||||
(Sformat.index -> ('l, 'm, 'n, 'o, 'p, 'q) format6 -> int -> 'h) ->
|
||||
'h
|
||||
|
||||
val kapr :
|
||||
(('a, 'b, 'c, 'd, 'e, 'f) format6 -> Obj.t array -> 'g) ->
|
||||
('a, 'b, 'c, 'd, 'e, 'f) format6 -> 'g
|
||||
('a, 'b, 'c, 'd, 'e, 'f) format6 ->
|
||||
'g
|
||||
|
||||
end;;
|
||||
|
||||
end;;
|
||||
|
|
Loading…
Reference in New Issue