From: Pierre Weis <pierre.weis@inria.fr>
To: eozk@bicom-inc.com (Eray Ozkural)
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Qualification of record fields
Date: Mon, 23 Dec 2002 11:14:23 +0100 (MET) [thread overview]
Message-ID: <200212231014.LAA00156@pauillac.inria.fr> (raw)
In-Reply-To: <200212200943.12072.eozk@bicom-inc.com> from Eray Ozkural at "Dec 20, 102 09:43:11 am"
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.
>
> Thanks,
>
> --
> Eray Ozkural <eozk@bicom-inc.com>
You just have to qualify st_kind: qualification in Caml is usable for
labels also. Hence, use:
if src_stats.Unix.st_kind != Unix.S_REG then exit 1;
Pierre Weis
INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/
-------------------
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
next prev parent reply other threads:[~2002-12-23 10:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-20 7:43 Eray Ozkural
2002-12-20 19:49 ` Sven Luther
2002-12-23 10:14 ` Pierre Weis [this message]
2002-12-26 9:03 ` Eray Ozkural
2002-12-26 16:54 ` Pierre Weis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200212231014.LAA00156@pauillac.inria.fr \
--to=pierre.weis@inria.fr \
--cc=caml-list@inria.fr \
--cc=eozk@bicom-inc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox