... This didn't work, but it gave me some insight into the problem. After browsing the ocaml compiler source code, it appears that unless you pass the ...
... MSVC 6 definitely worked for us. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets...
You can get advapi32.lib from the MS Core SDK. Check out this message from the archives: http://caml.inria.fr/archives/200404/msg00823.html I remember I found...
Hi there, I wonder how I can extend both a module F and its sub-module S (which is then referred to as F.S) I know I can "include" a module and extend with my...
The problem is that "include F" isn't really a way of extending modules. What "include F" does is to import all the symbols in F into the current namespace,...
... Thanks! I got it to work following the theme of your suggestion. I downloaded MASM32, which included the advapi32.lib. Next, I did something evil; I...
Hi, all There is code as follows: type myType = .... let myVar : myType option = None ... It seems that both 'option' and 'None' are not keyword. Where in...
... 'a option is a built in datatype (like 'a list, or 'a array). I'm not really sure where it's defined though, perhaps in pervasives.ml? William D. Neumann ...
... It is simply predefined, it doesn't belong to any referenceable module: $ ocaml Objective Caml version 3.08.2 # Pervasives.None;; Unbound constructor...
... I think they used to be defined in pervasives.mli (the Pervasives module), but it appears that in recent versions of OCaml they're actually built in to the...
I've been thinking a lot about OCaml's restriction that record field names need to be unique. It seems like an uncomfortable tradeoff, and digging into the...
We've got a similar problem. We solve it the hard way, prefixing record names, and using "fully qualified" module names when referring to the records from...
... That depends, but you can also make them read-only by using the "private" keyword in the module interface (in this case you have to write one): module X : ...
... Aha. So, for you, it's not an either-or situation; you're using *both* module scoping and prefixing. I feel strongly motivated to do either one or the...
... Interesting... I've never really used that feature before. But by "private", I'm really talking about making the type abstract, and just providing...
... I'd just like to be a bit clearer on why we use both. It's because we commonly have multiple types defined with similar fields within the same module....
Hallo!!! I am trying to switch from 'The Cygwin port of Objective Caml' to 'The native Win32 port built with Mingw' and encounter some problems with linking. I...
Hello, on the Caml-list there the term "boxed values" is often used. What's a boxed value and what's an unboxed value? TIA, Oliver -- "If you desire sanity in...
Oliver Bandel
oliver@...
Mar 13, 2005 5:01 pm
3019
... If you're familiar with C or C++, then the following explanation should help you. Boxed ... A value which is allocated on the heap and referenced through a...
... Basically "boxed" means that you have one level of indirection while "unboxed" means that you actually work with the value itself. [warning: try to "think...
... I mean: there are other situations where you'd want to treat primitives and composed objects in an uniform way. __________________________________ Do you...
On Sun, Mar 13, 2005 at 05:51:42PM +0100, Oliver Bandel wrote: [...] ... [...] Is there no possibility to *directly* use Str-module regexp's on...
Oliver Bandel
oliver@...
Mar 13, 2005 10:23 pm
3023
Hello, I developed happily my Mbox-module and learned a lot and were fast in progress... ...all works fine... until I reached the point where I wanted to...
Oliver Bandel
oliver@...
Mar 13, 2005 11:18 pm
3024
... Yes, you can use "[\000-\255]" or "\\(.\\|\n\\)" in order to match any character (but not "[.\n]" which matches a dot or a newline). ... I don't know. You...
... Well... I may use the octal notation... ...but tonight I tried it with what I expected as workaround: I wrote those two functions: let newlines_to_space...
Oliver Bandel
oliver@...
Mar 14, 2005 3:04 am
3026
... Good luck! -- Martin Jambon, PhD http://martin.jambon.free.fr...
... I'll second Martin Jambon on this. You should be using an external library - like his Micmatch, or Pcre. In the case of Pcre, there is a flag to switch...
... I would be glad if pcre would be part of the OCaml distribution. :) Then there would be a more perlish like Regexp-style (even if pcre does not use Perls...
Oliver Bandel
oliver@...
Mar 14, 2005 8:29 pm
3029
... Seems not to be documented in the Str-module documentation... If that is allowed functionality in the Str-module, then it seems to me that the...
Oliver Bandel
oliver@...
Mar 14, 2005 8:29 pm
3030
... I think "the jury is still out" on the right replacement for Str. I'm using Pcre at the moment, but considering a move to something like Micmatch or...