doc-src/Ref/theories.tex
changeset 6658 b44dd06378cc
parent 6625 eca6105b1eaf
child 6669 5f1ce866c497
equal deleted inserted replaced
6657:9627197bd9e1 6658:b44dd06378cc
   246 
   246 
   247 \begin{ttbox}
   247 \begin{ttbox}
   248 use_thy_only    : string -> unit
   248 use_thy_only    : string -> unit
   249 update_thy      : string -> unit
   249 update_thy      : string -> unit
   250 touch_thy       : string -> unit
   250 touch_thy       : string -> unit
       
   251 remove_thy      : string -> unit
   251 delete_tmpfiles : bool ref \hfill{\bf initially true}
   252 delete_tmpfiles : bool ref \hfill{\bf initially true}
   252 \end{ttbox}
   253 \end{ttbox}
   253 
   254 
   254 \begin{ttdescription}
   255 \begin{ttdescription}
   255 \item[\ttindexbold{use_thy_only} "$name$";] is similar to \texttt{use_thy},
   256 \item[\ttindexbold{use_thy_only} "$name$";] is similar to \texttt{use_thy},
   263   well.
   264   well.
   264   
   265   
   265 \item[\ttindexbold{touch_thy} "$name$";] marks theory node $name$ of the
   266 \item[\ttindexbold{touch_thy} "$name$";] marks theory node $name$ of the
   266   internal graph as outdated.  While the theory remains usable, subsequent
   267   internal graph as outdated.  While the theory remains usable, subsequent
   267   operations such as \texttt{use_thy} may cause a reload.
   268   operations such as \texttt{use_thy} may cause a reload.
       
   269   
       
   270 \item[\ttindexbold{remove_thy} "$name$";] deletes theory node $name$,
       
   271   including \emph{all} of its descendants.  Beware!  This is a quick way to
       
   272   dispose a large number of theories at once.  Note that {\ML} bindings to
       
   273   theorems etc.\ of removed theories may still persist.
   268   
   274   
   269 \item[reset \ttindexbold{delete_tmpfiles};] processing theory files usually
   275 \item[reset \ttindexbold{delete_tmpfiles};] processing theory files usually
   270   involves temporary {\ML} files to be created.  By default, these are deleted
   276   involves temporary {\ML} files to be created.  By default, these are deleted
   271   afterwards.  Resetting the \texttt{delete_tmpfiles} flag inhibits this,
   277   afterwards.  Resetting the \texttt{delete_tmpfiles} flag inhibits this,
   272   leaving the generated code for debugging purposes.  The basic location for
   278   leaving the generated code for debugging purposes.  The basic location for