From: Art Y. <ar...@us...> - 2004-10-17 08:39:02
|
Update of /cvsroot/swig/SWIG/Doc/Manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23409/Doc/Manual Modified Files: Ocaml.html Log Message: Updated documentation. Provide a swig_val function which generates a shareable value from a module specific one in a painless way. Index: Ocaml.html =================================================================== RCS file: /cvsroot/swig/SWIG/Doc/Manual/Ocaml.html,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Ocaml.html 2 Sep 2004 20:27:14 -0000 1.17 --- Ocaml.html 17 Oct 2004 08:38:53 -0000 1.18 *************** *** 22,51 **** <li><a href="#Ocaml_nn9">The generated module</a> <li><a href="#Ocaml_nn10">Enums</a> ! <li><a href="#Ocaml_nn11">Arrays</a> <ul> ! <li><a href="#Ocaml_nn12">Simple types of bounded arrays</a> ! <li><a href="#Ocaml_nn13">Complex and unbounded arrays</a> ! <li><a href="#Ocaml_nn14">Using an object</a> ! <li><a href="#Ocaml_nn15">Example typemap for a function taking float * and int</a> </ul> ! <li><a href="#Ocaml_nn16">C++ Classes</a> <ul> ! <li><a href="#Ocaml_nn17">STL vector and string Example</a> ! <li><a href="#Ocaml_nn18">C++ Class Example</a> ! <li><a href="#Ocaml_nn19">Compiling the example</a> ! <li><a href="#Ocaml_nn20">Sample Session</a> </ul> ! <li><a href="#Ocaml_nn21">Director Classes</a> <ul> ! <li><a href="#Ocaml_nn22">Director Introduction</a> ! <li><a href="#Ocaml_nn23">Overriding Methods in Ocaml</a> ! <li><a href="#Ocaml_nn24">Director Usage Example</a> ! <li><a href="#Ocaml_nn25">Creating director objects</a> ! <li><a href="#Ocaml_nn26">Typemaps for directors, <tt>directorin, directorout, directorargout</tt></a> ! <li><a href="#Ocaml_nn27"><tt>directorin</tt> typemap</a> ! <li><a href="#Ocaml_nn28"><tt>directorout</tt> typemap</a> ! <li><a href="#Ocaml_nn29"><tt>directorargout</tt> typemap</a> </ul> ! <li><a href="#Ocaml_nn30">Exceptions</a> </ul> </ul> --- 22,52 ---- <li><a href="#Ocaml_nn9">The generated module</a> <li><a href="#Ocaml_nn10">Enums</a> ! <li><a href="#Ocaml_nn11">Enum typing in Ocaml</a> ! <li><a href="#Ocaml_nn12">Arrays</a> <ul> ! <li><a href="#Ocaml_nn13">Simple types of bounded arrays</a> ! <li><a href="#Ocaml_nn14">Complex and unbounded arrays</a> ! <li><a href="#Ocaml_nn15">Using an object</a> ! <li><a href="#Ocaml_nn16">Example typemap for a function taking float * and int</a> </ul> ! <li><a href="#Ocaml_nn17">C++ Classes</a> <ul> ! <li><a href="#Ocaml_nn18">STL vector and string Example</a> ! <li><a href="#Ocaml_nn19">C++ Class Example</a> ! <li><a href="#Ocaml_nn20">Compiling the example</a> ! <li><a href="#Ocaml_nn21">Sample Session</a> </ul> ! <li><a href="#Ocaml_nn22">Director Classes</a> <ul> ! <li><a href="#Ocaml_nn23">Director Introduction</a> ! <li><a href="#Ocaml_nn24">Overriding Methods in Ocaml</a> ! <li><a href="#Ocaml_nn25">Director Usage Example</a> ! <li><a href="#Ocaml_nn26">Creating director objects</a> ! <li><a href="#Ocaml_nn27">Typemaps for directors, <tt>directorin, directorout, directorargout</tt></a> ! <li><a href="#Ocaml_nn28"><tt>directorin</tt> typemap</a> ! <li><a href="#Ocaml_nn29"><tt>directorout</tt> typemap</a> ! <li><a href="#Ocaml_nn30"><tt>directorargout</tt> typemap</a> </ul> ! <li><a href="#Ocaml_nn31">Exceptions</a> </ul> </ul> *************** *** 439,447 **** </pre> </blockquote> - - <H3><a name="Ocaml_nn11"></a>22.2.3 Arrays</H3> ! <H4><a name="Ocaml_nn12"></a>22.2.3.1 Simple types of bounded arrays</H4> --- 440,458 ---- </pre> </blockquote> + <H4><a name="Ocaml_nn11"></a>22.2.2.1 Enum typing in Ocaml</H4> ! The ocaml SWIG module now has support for loading and using multiple SWIG ! modules at the same time. This enhances modularity, but presents problems ! when used with a language which assumes that each module's types are complete ! at compile time. In order to achieve total soundness enum types are now ! isolated per-module. The type issue matters when values are shared between ! functions imported from different modules. You must convert values to master ! values using the swig_val function before sharing them with another module. ! ! <H3><a name="Ocaml_nn12"></a>22.2.3 Arrays</H3> ! ! ! <H4><a name="Ocaml_nn13"></a>22.2.3.1 Simple types of bounded arrays</H4> *************** *** 464,468 **** </p> ! <H4><a name="Ocaml_nn13"></a>22.2.3.2 Complex and unbounded arrays</H4> --- 475,479 ---- </p> ! <H4><a name="Ocaml_nn14"></a>22.2.3.2 Complex and unbounded arrays</H4> *************** *** 477,481 **** </p> ! <H4><a name="Ocaml_nn14"></a>22.2.3.3 Using an object</H4> --- 488,492 ---- </p> ! <H4><a name="Ocaml_nn15"></a>22.2.3.3 Using an object</H4> *************** *** 491,495 **** </p> ! <H4><a name="Ocaml_nn15"></a>22.2.3.4 Example typemap for a function taking float * and int</H4> --- 502,506 ---- </p> ! <H4><a name="Ocaml_nn16"></a>22.2.3.4 Example typemap for a function taking float * and int</H4> *************** *** 542,546 **** ! <H3><a name="Ocaml_nn16"></a>22.2.4 C++ Classes</H3> --- 553,557 ---- ! <H3><a name="Ocaml_nn17"></a>22.2.4 C++ Classes</H3> *************** *** 580,584 **** returned value for the same object. ! <H4><a name="Ocaml_nn17"></a>22.2.4.1 STL vector and string Example</H4> --- 591,595 ---- returned value for the same object. ! <H4><a name="Ocaml_nn18"></a>22.2.4.1 STL vector and string Example</H4> *************** *** 658,662 **** </pre></blockquote> ! <H4><a name="Ocaml_nn18"></a>22.2.4.2 C++ Class Example</H4> --- 669,673 ---- </pre></blockquote> ! <H4><a name="Ocaml_nn19"></a>22.2.4.2 C++ Class Example</H4> *************** *** 686,690 **** </pre></td></tr></table> ! <H4><a name="Ocaml_nn19"></a>22.2.4.3 Compiling the example</H4> --- 697,701 ---- </pre></td></tr></table> ! <H4><a name="Ocaml_nn20"></a>22.2.4.3 Compiling the example</H4> *************** *** 704,708 **** </pre></blockquote> ! <H4><a name="Ocaml_nn20"></a>22.2.4.4 Sample Session</H4> --- 715,719 ---- </pre></blockquote> ! <H4><a name="Ocaml_nn21"></a>22.2.4.4 Sample Session</H4> *************** *** 731,738 **** </p> ! <H3><a name="Ocaml_nn21"></a>22.2.5 Director Classes</H3> ! <H4><a name="Ocaml_nn22"></a>22.2.5.1 Director Introduction</H4> --- 742,749 ---- </p> ! <H3><a name="Ocaml_nn22"></a>22.2.5 Director Classes</H3> ! <H4><a name="Ocaml_nn23"></a>22.2.5.1 Director Introduction</H4> *************** *** 761,765 **** </pre></blockquote> ! <H4><a name="Ocaml_nn23"></a>22.2.5.2 Overriding Methods in Ocaml</H4> --- 772,776 ---- </pre></blockquote> ! <H4><a name="Ocaml_nn24"></a>22.2.5.2 Overriding Methods in Ocaml</H4> *************** *** 789,793 **** </p> ! <H4><a name="Ocaml_nn24"></a>22.2.5.3 Director Usage Example</H4> --- 800,804 ---- </p> ! <H4><a name="Ocaml_nn25"></a>22.2.5.3 Director Usage Example</H4> *************** *** 848,852 **** </p> ! <H4><a name="Ocaml_nn25"></a>22.2.5.4 Creating director objects</H4> --- 859,863 ---- </p> ! <H4><a name="Ocaml_nn26"></a>22.2.5.4 Creating director objects</H4> *************** *** 886,890 **** </p> ! <H4><a name="Ocaml_nn26"></a>22.2.5.5 Typemaps for directors, <tt>directorin, directorout, directorargout</tt></H4> --- 897,901 ---- </p> ! <H4><a name="Ocaml_nn27"></a>22.2.5.5 Typemaps for directors, <tt>directorin, directorout, directorargout</tt></H4> *************** *** 897,901 **** </p> ! <H4><a name="Ocaml_nn27"></a>22.2.5.6 <tt>directorin</tt> typemap</H4> --- 908,912 ---- </p> ! <H4><a name="Ocaml_nn28"></a>22.2.5.6 <tt>directorin</tt> typemap</H4> *************** *** 908,912 **** </p> ! <H4><a name="Ocaml_nn28"></a>22.2.5.7 <tt>directorout</tt> typemap</H4> --- 919,923 ---- </p> ! <H4><a name="Ocaml_nn29"></a>22.2.5.7 <tt>directorout</tt> typemap</H4> *************** *** 919,923 **** </p> ! <H4><a name="Ocaml_nn29"></a>22.2.5.8 <tt>directorargout</tt> typemap</H4> --- 930,934 ---- </p> ! <H4><a name="Ocaml_nn30"></a>22.2.5.8 <tt>directorargout</tt> typemap</H4> *************** *** 936,940 **** </p> ! <H3><a name="Ocaml_nn30"></a>22.2.6 Exceptions</H3> --- 947,951 ---- </p> ! <H3><a name="Ocaml_nn31"></a>22.2.6 Exceptions</H3> |