Hello to everybody I have just finished putting online a bunch of tutorials either by me or (mostly) by Stefano Zacchiroli. You can find them under the name...
... Thank you for the effort you put in to help others like me. Regards. Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie,...
Johann Spies
jspies@...
Apr 2, 2003 9:50 am
965
Hi! Using OCamlWin I tried entering the following from the Chailloux, Manoury, Pagano book, and got these responses. # let from_rgb (c : Graphics.color) = let...
Dear Issac, ... That works. :-) Many thanks, Bill __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online,...
Hi, I'm wondering about implementation of dynamic programming algorithms in OCaml -- essentially, how does it relate to recursion? Does anyone have a small...
... Using the imperative features of Ocaml, dynamic programming algorithms can be copied almost exactly from standard table-filling pseudocode. The memoization...
Manos Renieris
er@...
Apr 4, 2003 12:47 am
970
... Recursion is just the traditional pure functional way of achieving what imperative programmers use loop constructs to do. The "dynamic programming...
Hello Everyone! I made a program that contains a lot of Printf's to a file. While programming i did a lot of (camlp4r syntax) do { ... }. This is a very...
... Do a lot of Format.sprintf instead and fetch the strings around in a functional way, ouputting it only at a key-passage that you can control. Imperative...
Hi Ernesto, I can't seem to get it working by using Format.sprintf while Format.fprintf works. How do i keep the "formatting stream" when i use sprintf? ...
... Hi, I have stopped developing Camlp4 since Daniel De Rauglaudre, the inventor of Camlp4, broke with Ocaml and so Camlp4 seems to be unmantained at present....
... This is false. bug fix are still apply to camlp4, even after Daniel De Rauglaudre broke with the rest of the team... The only problem may be that as none...
... this have nothing to do with camlp4. This a type thing, not a lexical/syntaxical thing : # Format.sprintf;; - : ('a, unit, string) format -> 'a = <fun> its...
Hi all, There's something I don't wonder about with that "Str.global_substitute" function. Here's the signature: val global_substitute : regexp -> (string ->...
DUBOIS Fabrice FTRD/D...
fabrice.dubois@...
Apr 10, 2003 10:42 am
980
Sorry, in my previous message, you must read "There's something I ___DO___ wonder about..." :-) ... De : DUBOIS Fabrice FTRD/DTL/LAN Envoyé : jeudi 10 avril...
DUBOIS Fabrice FTRD/D...
fabrice.dubois@...
Apr 10, 2003 10:44 am
981
... well, you can easily find it by using the functions matched_string, match_beginning, match_end, matched_group, group_beginning, group_end. [...] -- Rémi...
... WHOLE TEXT ("s") to that function. ... instead! Creating the substring has as cost, and for example sometimes you don't care about which substring is...
... Good point!! For bonus points: if you can come up with a generic functor for a few dynamic programming approaches (such as filling a 2d table, etc.) then...
I have a little learning program does simple processing on a report style file. I build a list using the 'input_line input_channel' in a recursive function...
... Probably, but you WANT to use exceptions. (As far as I know, it is the Right Way to read a file). ... In OCaml you are welcome to use exceptions as much as...
Yes, exception handling is really clean is OCaml. Too often, exceptions are considered synonyms of "nasty error " or "imminent-crash" indicators. But in fact,...
DUBOIS Fabrice FTRD/D...
fabrice.dubois@...
Apr 17, 2003 9:24 am
987
... Use exceptions, but be aware both of the fact that try...with... constructs break tail-recursiveness, and of the kind of incorrect nesting described below...
... There's a lot of overhead associated to C++ exception (so much as to cause Trolltech Inc. to not use them in their Qt product, e.g. the --no-g++-exceptions...
Wow... I'm certainly getting a lot of interesting input. Thanks everyone! What if the recursive function is constructing a return? Like a 'val :: mk_more_rec...