]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/mathql_interpreter/mqint.ml
Bug fixed: there is an invariant that every attributed uri list must be
[helm.git] / helm / ocaml / mathql_interpreter / mqint.ml
index 0de53503ec72edc48f11c0190b9a5ab80a8ac635..5fbfc86c6665df1e34f5588e27895763851004ff 100644 (file)
@@ -138,14 +138,12 @@ let rec execute_ex env =
        res
  |  MQListLVar lvar ->
      letref_ex lvar
- |  MQReference l -> (* FG: *)
+ |  MQReference l ->
      let rec build_result = function
        | [] -> []
        | s :: tail -> 
         {uri = s ; attributes = [] ; extra = ""} :: build_result tail
-     in build_result l
- | MQMinimize l ->     (* FG: sostituire con l'implementazione vera *)
-     execute_ex env l 
+     in build_result (List.sort compare l)
 ;;
 
 (* Let's initialize the execute in Select, creating a cyclical recursion *)