summaryrefslogtreecommitdiff
path: root/src/process_file.ml
diff options
context:
space:
mode:
authorRobert Norton2017-04-11 14:30:22 +0100
committerShaked Flur2017-04-18 13:58:33 +0100
commit106d7d8c4793817021d2791159ec373ac36c452d (patch)
tree080e099489df2ab2f8dbbd997900ddf2a60cab96 /src/process_file.ml
parentfea4672ef7e6b1a6ac1c7dfb2c42dccd4e5386d2 (diff)
Implement return using an exception caught in the function body. Polymorphic exceptions are not permitted so a local mutable variable, ret, is used in ocaml to store the return value. This avoids having to define a new exception type for each function. Ocaml infers the type of the option when it is assigned at the return site.
Diffstat (limited to 'src/process_file.ml')
0 files changed, 0 insertions, 0 deletions