Function prototype: Difference between revisions

Content added Content deleted
(→‎{{header|OCaml}}: added ocaml)
Line 929: Line 929:


(* A prototype declaration for a function that utilizes named parameters *)
(* A prototype declaration for a function that utilizes named parameters *)
val named_arg : ~param1:int -> ~param2:int -> unit
val named_arg : param1:int -> param2:int -> unit


(* An explanation and example of any special forms of prototyping not covered by the above *)
(* An explanation and example of any special forms of prototyping not covered by the above *)
Line 938: Line 938:
(* A prototype declaration for a function with polymorphic argument *)
(* A prototype declaration for a function with polymorphic argument *)
val poly_args : 'a -> unit</lang>
val poly_args : 'a -> unit</lang>



=={{header|Oforth}}==
=={{header|Oforth}}==