Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Qualification of record fields
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Sven Luther <luther@d...>
Subject: Re: [Caml-list] Qualification of record fields
On Fri, Dec 20, 2002 at 09:43:11AM +0200, Eray Ozkural wrote:
> Hi,
> 
> I've got a simple code that does some Unix
>     if src_stats.st_kind != Unix.S_REG then exit 1 else ();
> 
> My problem is that I have to do
> open Unix
> for st_kind field to be available. Isn't that kind of strange? I want to use 
> Unix without opening it, qualifying symbols whenever necessary.

What about :

  if src_stats.Unix.st_kind != Unix.S_REG then exit 1 else ();

?

Friendly,

Sven Luther
-------------------
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