... It has nothing to do with Tuareg mode, AFAIK. I am also using Tuareg mode but I still have to install the caml-types.el file like that to get type ...
Hello, Is it possible to dynamically generate class methods in OCaml? I need some functionality, like AUTOLOAD in Perl, when class listen all received messages...
Maxim Treskin
mtreskin@...
Jun 2, 2006 9:38 am
6017
... Perhaps immediate objects would serve this purpose? The only thing is that I doubt you can dynamically generate the method names ... No idea what that is,...
... No because OCaml is statically typed. You can, of course, get equivalent functionality using some other approach in OCaml. ... You're asking for (string ->...
... Thank you! This workaround seems very good -- Maxim Treskin SWsoft Inc. HSPcomplete Developer Email: mtreskin@... Jabber: Zert@... ICQ:...
Maxim Treskin
mtreskin@...
Jun 2, 2006 10:51 am
6020
Shalom, Maxim. MT> Is it possible to dynamically generate class methods in OCaml? MT> I need some functionality, like AUTOLOAD in Perl, when class MT> listen...
... [...] From the security viewpoint of an application you better do not go this way. Or at least you should reduce the allowed commands to be limited. IMHO...
... You could try chopping the code up until you can isolate the minimal example which produces the segfault. You should do that anyway if you're going to...
... I looked into the first line of the file that ocamlcp mentioned as problematic: ============================================= first:~/Desktop/logo-ppmread...
Oliver Bandel
oliver@...
Jun 4, 2006 6:26 pm
6031
... Oh I should've added: perhaps you could ask for a feature request for ocaml-compilers to reject filenames with dashes in the first place, reporting an...
... Oh of course. Did you stop to consider the fact that modules names themselves can't contain dashes? Since filenames are also module names, it then becomes...
... Yes. I complained a while back that the compilers crashed when you gave them a filename beginning with a digit. My next main gripe is the lack of quotes...
Hello, some days ago I came back to an old quick-hack to read in ppm-files and get the minimal bounding box of ot, converting to ASCII and Postscript and so...
Oliver Bandel
oliver@...
Jun 4, 2006 7:48 pm
6035
... This may not be useful, but have you thought of using the string itself as the internal representation of the image? Another alternative is to make the...
Hi, On Mon, Jun 05, 2006 at 08:07:13AM +1200, Jonathan Roewen wrote: [...] ... Not really. As I need to grab parts of the original out (the original picture...
Oliver Bandel
oliver@...
Jun 4, 2006 9:13 pm
6037
On Sun, Jun 04, 2006 at 10:59:18PM +0200, Oliver Bandel wrote: [...] ... Not really, if the running time of the whole program will increase... :( The reading...
Oliver Bandel
oliver@...
Jun 4, 2006 9:14 pm
6038
... [...] Compiled to native code the whole program now runs in about 6.4 seconds. Even more strange (but nice performance now). How can it be that the...
Oliver Bandel
oliver@...
Jun 4, 2006 9:39 pm
6039
... Using mutable fields in the record makes it slower overall?? That is certainly odd. Maybe the array.init version with non-mutable records is better then. ...
... Yes, there are most undoubtedly a few bugs ;-) It's dependent on init_matrix filling the items in a particular order (row by row), and completely ignores...
... They're different compilers, and also target different instruction sets. The ocamlopt is reportedly very good at optimising the generated code. The...
... Well, I have to look for the bounding box. But while thinking about your attempt I think, this maybe also makes sense.... one could calculate the (x,y)...
Oliver Bandel
oliver@...
Jun 4, 2006 10:54 pm
6043
... Maybe I'm stupid today, but what is wrong here? ================================================== let picture = Array.make_matrix width height...
Oliver Bandel
oliver@...
Jun 4, 2006 11:31 pm
6044
I've run into this before. Basically, behind the scenes, picture is an array of pointers. When you first call make_matrix, you're passing in a default value,...