# HG changeset patch # User haftmann # Date 1258363000 -3600 # Node ID b45d3b8cc74eae3dadcb6184beefa16055dca979 # Parent 6aeb8454efc15bf155027a4c4423cb71c2a3771d proper purge diff -r 6aeb8454efc1 -r b45d3b8cc74e src/Pure/Isar/code.ML --- a/src/Pure/Isar/code.ML Sun Nov 15 21:58:40 2009 +0100 +++ b/src/Pure/Isar/code.ML Mon Nov 16 10:16:40 2009 +0100 @@ -268,7 +268,7 @@ of SOME cs => invoke_purge_all thy (complete_class_params thy cs) (! data) | NONE => empty_data))) thy; -val purge_data = (Code_Data.map o apsnd) (K (Unsynchronized.ref empty_data)); +val purge_data = (Code_Data.map o apsnd) (fn _ => Unsynchronized.ref empty_data); fun change_eqns delete c f = (map_exec_purge (SOME [c]) o map_eqns o (if delete then Symtab.map_entry c else Symtab.map_default (c, ((false, (true, [])), [])))