Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] view types in ocaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ed L Cashin <ecashin@u...>
Subject: [Caml-list] view types in ocaml?
Hi.  I like ocamlbrowser well enough, but is there a way to view type
info right from the interactive ocaml prompt.  Here's what I'm
thinking of (which won't work, of course).

          Objective Caml version 3.06
  
  # #load "unix.cma";;
  # Unix.LargeFile.lseek;;
  - : Unix.file_descr -> int64 -> Unix.seek_command -> int64 = <fun>
  # Unix.LargeFile.stats;;
  type stats = {
    st_dev : int;
    st_ino : int;
    st_kind : Unix.file_kind;
    st_perm : Unix.file_perm;
    st_nlink : int;
    st_uid : int;
    st_gid : int;
    st_rdev : int;
    st_size : int64;
    st_atime : float;
    st_mtime : float;
    st_ctime : float;
  } 

-- 
--Ed L Cashin            |   PGP public key:
  ecashin@uga.edu        |   http://noserose.net/e/pgp/
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners