I want to use hashtable on my objects which all has a method get_string:string. but i can only write the code like these: module SeqHashType = struct type t=...
... Why not??? ... Time to see mingw32... Gergo +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+ ... +-------"Olyan langesz vagyok, hogy...
Kontra, Gergely
kgergely@...
Nov 4, 2002 1:46 pm
578
... Well, it's a matter of honesty. Why be honest ? It's your problem. By the way : "The source code for a work means the preferred form of the work for making...
Can anyone explain why the type of s is not the same in these two sessions (ocaml 3.04) ? # let s = `A :: [];; val s : [> `A] list = [`A] # let cons e l =...
In the FAQ I see that map is polymorphic and id is polymorphic but (map id) is not : # List.map (function x -> x);; - : '_a list -> '_a list = <fun> #...
... Well, the fact is that no value that is the result of the application of a function to something can be polymorphic. Why ? because of # let f x = let mu =...
... To tell the truth I don't do this with any ocaml code, so no idea. But I think: whenever you must use gcc. But please consider using the mingw compilers...
Kontra, Gergely
kgergely@...
Nov 6, 2002 4:59 pm
584
Hello to everybody. I've found a grep-like ocaml program at http://www.oefai.at/~markus/ocaml_sources/pcre-ocaml-4.28.3/examples/pcregrep/ Does anybody know...
... I'm now trying Str.regexp, but it does not understand things like the { } notation, i.e. {<minimum number of occurrences>, <maximum number of occurrences>}...
Hello to everybody I often meet the word "blit" in function names, such as Graphics.blit_image, StringLabels.blit ... what does b l i t stand for? Thank you ...
I was stuck with Str.string_match because I want to use the {min/max quantifier} notation, and Str.string_match apparently does not allow this. Since...
... From Jargon File (4.3.3, 20 Sep 2002) [jargon]: blit /blit/ vt. 1. [common] To copy a large array of bits from one part of a computer's memory to another...
Stefano Zacchiroli
zack@...
Nov 12, 2002 9:20 am
589
Markus Mottl himself was so kind to come and help out. He made a new release of pcre-ocaml with a very handy function, that is called extract_all and gives for...
Hi, I wonder why my class interface hides the 'new' constructor in the following example. I have a foo class in foo.ml ... class foo = object method bar...
... no, no, no. Your foo.ml doesn't contain a class type, it contain a ... class foo : object method bar : unit->unit end ... by the way, ocamlc -i foo.ml >...
Hi, if I have a [`A] I can write a function that gives me a [>`A] with the same value : Objective Caml version 3.04 # let (v:[`A])=`A;; val v : [ `A] = `A #...
... Its seem to be the case. By the way : # `A;; - : [> `A] = `A so, if you don't use explicit type, you have your [> `A], and : # let e = (`A : [`A]);; val e...
... the ... give a ... Yes but due to the _ in types when I use functions to build 'polymorphic values', I start with a [>'A] and at the end I have a [`A]....
Hi All, I have a module (Module1) which has a record type type myrec = { field1: int; field2: int; } This type is exported (using the MLI file). This module...
Hi, ... Write val1.Module1.field1 Another way is to redefine the type myrec as equivalent to Module1.myrec at the beginning of the module: type myrec =...
Daniel de Rauglaudre
daniel.de_rauglaudre@...
Nov 18, 2002 4:59 am
597
I am missing something obvious. I am writing a little program which takes two parameters: <source (bron)> and <destination (bestemming)> which must both be...
Johann Spies
jspies@...
Nov 19, 2002 3:24 pm
598
What if you replace else print_string f; print_endline " -- does not exist" with else (print_string f; print_endline " -- does not exist") i.e. you add...
Hi, You need to add begin/end : ... else begin print_string f; print_endline " -- does not exist" end otherwise your print_endline is not considered part of...
DUBOIS Fabrice FTRD/D...
fabrice.dubois@...
Nov 19, 2002 4:14 pm
600
Johann Spies <jspies@...> writes: ... it's exactly the same than let sort_files = List.sort compare You don't need the (fun a b -> -- Rémi Vanicat ...
Rich, I had the same problem as you, If you only use standard ocaml libraries and no external libraries like pcre, the compiling using the standard win32-ocaml...
Mattias Waldau
mattias.waldau@...
Nov 20, 2002 6:36 am
602
Yeah - VC++ works... I'd rather get away from it - but for once MS is a heck of a lot cheaper than 'the other choice'. -Rich ... From: "Mattias Waldau"...
... am in this Hi all, Yes it is correct: I never checked in the source, by I remember that when I learnt caml I was said that "(" is just a shortcut for...
... Yes, and thank you to everybody who replied. ... Thanks. I used this function from an example without thinking too much about it. Maybe I don't have...
Johann Spies
jspies@...
Nov 20, 2002 8:29 am
605
I've sent in this list several messages concerning the _ in types such as in '_a or _[`A]. This restriction of polymorphism to syntactical values has been ...