Skip to content

Instantly share code, notes, and snippets.

@stedolan
Created March 9, 2022 16:16
Show Gist options
  • Save stedolan/ca1096fd06c74de9cba5c3fa43c13cca to your computer and use it in GitHub Desktop.
Save stedolan/ca1096fd06c74de9cba5c3fa43c13cca to your computer and use it in GitHub Desktop.
module F () =
struct
let v01 = ref 42
let v02 = ref 42
let v03 = ref 42
let v04 = ref 42
let v05 = ref 42
let v06 = ref 42
let v07 = ref 42
let v08 = ref 42
let v09 = ref 42
let v10 = ref 42
let v11 = ref 42
let v12 = ref 42
module M = struct
let f () = [| v01; v02; v03; v04; v05; v06; v07; v08; v09; v10; v11; v12 |]
end
end
let g () =
let v01 = ref 42 in
let v02 = ref 42 in
let v03 = ref 42 in
let v04 = ref 42 in
let v05 = ref 42 in
let v06 = ref 42 in
let v07 = ref 42 in
let v08 = ref 42 in
let v09 = ref 42 in
let v10 = ref 42 in
let v11 = ref 42 in
let v12 = ref 42 in
let m () =
[| v01; v02; v03; v04; v05; v06; v07; v08; v09; v10; v11; v12 |]
in
(v01,
v02,
v03,
v04,
v05,
v06,
v07,
v08,
v09,
v10,
v11,
v12,
m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment