From: Guillaume Y. <gui...@ci...> - 2009-06-27 15:22:13
|
> William S Fulton a écrit : > >> If you want to create a runtime-less module from scratch, I suggest >> you base >> it on C# as that is probably the most featureful statically typed >> language >> module. Take csharp.cxx and start hacking that to fit ocaml. I suggest >> getting the basic examples and test-suite test cases working before >> working >> on a big project (freeling). >> >> William I've been starting to rewrite the module according to chapter 35 of the documentation. Rather scarce for now. Code is available at: http://yziquel.homelinux.org/trac/browser/ocaml/swig-ocaml/ocaml-module However, I now have the following error, when compiling swig with this module: > ../Source/DOH/doh.h: In member function ‘virtual int OCAML::top(Node*)’: > ../Source/DOH/doh.h:303: error: too few arguments to function ‘DOH* DohNewFile(DOH*, const char*, DOH*)’ > Modules/ocaml.cxx:59: error: at this point in file This refers to the following line of code: > 59 f_runtime = NewFile(outfile, "w"); So it seems to me that the documentation paragraph 35.10.6 should be corrected. The code sample has problems. What is the syntax and semantics of the NewFile function? All the best, Guillaume Yziquel. -- Guillaume Yziquel http://yziquel.homelinux.org/ |