boolean in OCaml
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <[email protected]> |
Hi, I defined a boolean variable in a .ml file using OCaml like that: let whilecmd = false and somewhere I assign true to this boolean variable : whilecmd=true; (It gives a warning : this expression should have type unit) and it doesn't work. The boolean whilecmd is still false. Can anyone help me? Thanks