Richard W.M. Jones c7651744da ocaml: Replace pattern matching { field = field } with { field }.
If you have a struct containing ‘field’, eg:

  type t = { field : int }

then previously to pattern-match on this type, eg. in function
parameters, you had to write:

  let f { field = field } =
    (* ... use field ... *)

In OCaml >= 3.12 it is possible to abbreviate cases where the field
being matched and the variable being bound have the same name, so now
you can just write:

  let f { field } =
    (* ... use field ... *)

(Similarly for a field prefixed by a Module name you can use
‘{ Module.field }’ instead of ‘{ Module.field = field }’).

This style is widely used inside the OCaml compiler sources, and is
briefer than the long form, so it makes sense to use it.  Furthermore
there was one place in virt-dib where we are already using this new
style, so the old code did not compile on OCaml < 3.12.

See also:
https://forge.ocamlcore.org/docman/view.php/77/112/leroy-cug2010.pdf
2017-10-05 11:32:54 +01:00
2017-06-22 15:19:44 +01:00
2017-01-03 16:48:21 +01:00
2017-10-05 11:32:54 +01:00
2017-01-26 15:05:46 +00:00
2017-10-05 11:32:54 +01:00
2017-01-26 15:05:46 +00:00
2017-09-28 15:28:13 +01:00
2017-08-10 15:03:37 +02:00
2017-09-16 23:06:25 +01:00
2017-09-18 16:06:04 +01:00
2013-01-24 15:00:49 +00:00
2017-09-28 15:28:13 +01:00
2017-01-26 15:05:46 +00:00
2017-09-28 15:28:13 +01:00
2017-01-26 15:05:46 +00:00
2017-09-28 14:39:23 +01:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2017-09-28 15:28:13 +01:00
2017-01-26 15:05:46 +00:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2016-02-10 14:15:05 +01:00

Libguestfs is tools and a library for accessing and modifying guest
disk images.  For more information see the home page:

  http://libguestfs.org/

For discussion, development, patches, etc. please use the mailing
list:

  http://www.redhat.com/mailman/listinfo/libguestfs

To find out how to build libguestfs from source, read:

  docs/guestfs-building.pod
  http://libguestfs.org/guestfs-building.1.html
  man docs/guestfs-building.1

Copyright (C) 2009-2017 Red Hat Inc.

The library is distributed under the LGPLv2+.  The programs are
distributed under the GPLv2+.  Please see the files COPYING and
COPYING.LIB for full license information.  The examples are under a
very liberal license.
Languages
C 42.7%
OCaml 35.5%
Shell 7.1%
Makefile 4%
Perl 2.6%
Other 8%