<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/12/64f9891465a85033402f55b9d9d414a4"
  from="Pierre Weis &lt;pierre.weis@i...&gt;"
  author="Pierre Weis"
  date="2002-12-23T10:14:26"
  subject="Re: [Caml-list] Qualification of record fields"
  prev="2002/12/9e50d6b9dc4fa4946c0dddc131ee2235"
  next="2002/12/2f5b617341ef2775e317b43c43098b58"
  prev-in-thread="2002/12/66dc1faff6b5a3bb7ef3ae148a2d0f48"
  next-in-thread="2002/12/94b7fe8bd25a2a3881ffe059f168262e"
  prev-thread="2002/12/b557f9473d000343b13429780b7cdff9"
  next-thread="2002/12/91aa7b1a95c3d3276c4f02d438ab4a82"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Qualification of record fields">
<msg 
  url="2002/12/cddb5144a134e20bd2334b3905b9e761"
  from="Eray Ozkural &lt;eozk@b...&gt;"
  author="Eray Ozkural"
  date="2002-12-20T19:40:54"
  subject="[Caml-list] Qualification of record fields">
<msg 
  url="2002/12/66dc1faff6b5a3bb7ef3ae148a2d0f48"
  from="Sven Luther &lt;luther@d...&gt;"
  author="Sven Luther"
  date="2002-12-20T19:49:43"
  subject="Re: [Caml-list] Qualification of record fields">
</msg>
<msg 
  url="2002/12/64f9891465a85033402f55b9d9d414a4"
  from="Pierre Weis &lt;pierre.weis@i...&gt;"
  author="Pierre Weis"
  date="2002-12-23T10:14:26"
  subject="Re: [Caml-list] Qualification of record fields">
<msg 
  url="2002/12/94b7fe8bd25a2a3881ffe059f168262e"
  from="Eray Ozkural &lt;eozk@b...&gt;"
  author="Eray Ozkural"
  date="2002-12-26T16:55:56"
  subject="Re: [Caml-list] Qualification of record fields">
<msg 
  url="2002/12/39cbdd404e8a04b085a4da390c28b8f5"
  from="Pierre Weis &lt;pierre.weis@i...&gt;"
  author="Pierre Weis"
  date="2002-12-26T16:54:04"
  subject="Re: [Caml-list] Qualification of record fields">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
Hi,

&gt; I've got a simple code that does some Unix
&gt;     if src_stats.st_kind != Unix.S_REG then exit 1 else ();
&gt; 
&gt; My problem is that I have to do
&gt; open Unix
&gt; for st_kind field to be available. Isn't that kind of strange? I want to use 
&gt; Unix without opening it, qualifying symbols whenever necessary.
&gt; 
&gt; Thanks,
&gt; 
&gt; -- 
&gt; Eray Ozkural &lt;eozk@bicom-inc.com&gt;

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

</contents>

</message>

