repaired reference implementation for OCaml
authorhaftmann
Wed, 14 Jul 2010 16:45:30 +0200
changeset 3783001d308b00bcf
parent 37829 11f813e86305
child 37831 fa3a2e35c4f1
repaired reference implementation for OCaml
src/HOL/Imperative_HOL/Ref.thy
     1.1 --- a/src/HOL/Imperative_HOL/Ref.thy	Wed Jul 14 16:45:30 2010 +0200
     1.2 +++ b/src/HOL/Imperative_HOL/Ref.thy	Wed Jul 14 16:45:30 2010 +0200
     1.3 @@ -277,10 +277,10 @@
     1.4  text {* OCaml *}
     1.5  
     1.6  code_type ref (OCaml "_/ ref")
     1.7 -code_const Ref (OCaml "failwith/ \"bare Ref\")")
     1.8 -code_const ref (OCaml "(fn/ ()/ =>/ ref/ _)")
     1.9 -code_const Ref.lookup (OCaml "(fn/ ()/ =>/ !/ _)")
    1.10 -code_const Ref.update (OCaml "(fn/ ()/ =>/ _/ :=/ _)")
    1.11 +code_const Ref (OCaml "failwith/ \"bare Ref\"")
    1.12 +code_const ref (OCaml "(fun/ ()/ ->/ ref/ _)")
    1.13 +code_const Ref.lookup (OCaml "(fun/ ()/ ->/ !/ _)")
    1.14 +code_const Ref.update (OCaml "(fun/ ()/ ->/ _/ :=/ _)")
    1.15  
    1.16  code_reserved OCaml ref
    1.17