From d1593f3524cfc1d0fdbd0194e05703d15dc9ba00 Mon Sep 17 00:00:00 2001 From: aspiwack Date: Fri, 14 Aug 2009 16:17:52 +0000 Subject: Ajout de la gestion de Local et Global pour les options (au sens de Goptions). - Local Set/Unset ... change la valeur de l'option pour la section en cours (ou le module si il n'y a pas de section), l'option est restaurée à sa valeur précédente au sortir de la section. - Set/Unset ... survit aux sections mais pas aux modules. - Global Set/Unset ... survit aux sections et aux modules. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il y a une légère source d'incompatibilité là, Set avait le comportement de Local Set. Ça n'apparaît pas dans la lib standard, mais sait-on jamais. Les étapes suivantes : - Supprimer la notion d'option asynchrone, je n'en vois vraiment pas l'intérêt. Changer le type de retour de declare_option à unit aussi serait probablement une bonne idée. - Ajouter le support Local/Global à d'autres commandes sur le même modèle. Conflicts: parsing/g_vernac.ml4 git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12280 85f007b7-540e-0410-9357-904b9bb8a0f7 --- library/libobject.mli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'library/libobject.mli') diff --git a/library/libobject.mli b/library/libobject.mli index f32d3baa7..a8b5702f8 100644 --- a/library/libobject.mli +++ b/library/libobject.mli @@ -29,7 +29,7 @@ open Mod_subst * an opening function, specifying what to do when the module containing the object is opened (imported); If the object wishes to register its visibility in the Nametab, - it should do so for the sufix of the length the "int" argument + it should do so for the suffix of the length the "int" argument * a classification function, specyfying what to do with the object, when the current module (containing the object) is ended; @@ -49,7 +49,7 @@ open Mod_subst * a substitution function, performing the substitution; this function should be declared for substitutive objects - only (see obove) + only (see above) * a discharge function, that is applied at section closing time to collect the data necessary to rebuild the discharged form of the -- cgit v1.2.3