Skip to content

Commit

Permalink
[enhance] jslang: Just make pure arguments as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Oct 17, 2012
1 parent ea0e55c commit 40eb0d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/jslang/jsCons.ml
Expand Up @@ -75,7 +75,7 @@ struct
let true_ ?label () = bool ?label true
let false_ ?label () = bool ?label false

let call ?(label=def_label()) ~pure f args =
let call ?(label=def_label()) ?(pure=false) f args =
J.Je_call (label, f, args, pure)

let comma ?(label=def_label()) list last =
Expand Down
2 changes: 1 addition & 1 deletion compiler/jslang/jsCons.mli
Expand Up @@ -32,7 +32,7 @@ sig
val false_ : ?label:Annot.label -> unit -> JsAst.expr

val bool : ?label:Annot.label -> bool -> JsAst.expr
val call : ?label:Annot.label -> pure:bool -> JsAst.expr -> JsAst.expr list -> JsAst.expr
val call : ?label:Annot.label -> ?pure:bool -> JsAst.expr -> JsAst.expr list -> JsAst.expr
val cond : ?label:Annot.label -> JsAst.expr -> JsAst.expr -> JsAst.expr -> JsAst.expr

(**
Expand Down

0 comments on commit 40eb0d6

Please sign in to comment.