English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Toplevel loading of modules
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-12-14 (16:49)
From: Patrick M Doane <patrick@w...>
Subject: [Caml-list] Toplevel loading of modules
Now that Caml 3.04 can dynamically load C code, we should hopefully be
able to put to rest the FAQ about how to use the Unix module.

Unlike other standard libraries though, the Unix library must still be
explicitly loaded:

        Objective Caml version 3.04

# Unix.time ();;
Reference to undefined global `Unix'
# #load "unix.cma";;
# Unix.time ();;
- : float = 1008347555

Would it make sense to try auto-loading a module when the "Reference to
undefined global" error message occurs?


Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr