Search the web
Sign In
New User? Sign Up
ocaml_beginners · Ocaml Beginners
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 6015 - 6044 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
6015
... 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 ...
Jon Harrop
harropjon
Offline Send Email
Jun 1, 2006
2:25 pm
6016
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@...
Send Email
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,...
Jonathan Roewen
consulatewizard
Offline Send Email
Jun 2, 2006
10:00 am
6018
... No because OCaml is statically typed. You can, of course, get equivalent functionality using some other approach in OCaml. ... You're asking for (string ->...
Jon Harrop
harropjon
Offline Send Email
Jun 2, 2006
10:34 am
6019
... Thank you! This workaround seems very good -- Maxim Treskin SWsoft Inc. HSPcomplete Developer Email: mtreskin@... Jabber: Zert@... ICQ:...
Maxim Treskin
mtreskin@...
Send Email
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...
dmitry grebeniuk
dmitrygrebeniuk
Offline Send Email
Jun 2, 2006
11:22 am
6021
... [...] 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...
Oliver Bandel
oliver@...
Send Email
Jun 2, 2006
12:30 pm
6022
Hello, what's going on here? =========================== first:~/Desktop/logo-ppmread oliver$ ocamlc ppm-read.ml first:~/Desktop/logo-ppmread oliver$ ocamlcp...
Oliver Bandel
oliver@...
Send Email
Jun 4, 2006
4:01 pm
6023
... [...] I will try it again with 3.09.2 (I have 3.09.0). Maybe the problem will vanish then. Ciao, Oliver...
Oliver Bandel
oliver@...
Send Email
Jun 4, 2006
4:35 pm
6024
Try rm *.cm* first. From the documentation, without an .mli file, using ocamlcp after ocamlc may cause problems....
Jonathan Roewen
consulatewizard
Offline Send Email
Jun 4, 2006
4:47 pm
6025
Hello, ... OK, thansk for that hint, but it didn't help. Have now 0caml 3.09.2 and the problem did not vanish :( ============================== ...
Oliver Bandel
oliver@...
Send Email
Jun 4, 2006
5:23 pm
6026
Well, what's your code?...
Jonathan Roewen
consulatewizard
Offline Send Email
Jun 4, 2006
5:30 pm
6027
... Has 527 lines - to much to send to the list? And: why should there be a problem, if ocamlc accepts the code? Ciao, Oliver...
Oliver Bandel
oliver@...
Send Email
Jun 4, 2006
5:54 pm
6028
... That's what I'd like to see :-) Paste here: http://rafb.net/paste/...
Jonathan Roewen
consulatewizard
Offline Send Email
Jun 4, 2006
6:00 pm
6029
... 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...
Richard Jones
rwmjones
Offline Send Email
Jun 4, 2006
6:14 pm
6030
... I looked into the first line of the file that ocamlcp mentioned as problematic: ============================================= first:~/Desktop/logo-ppmread...
Oliver Bandel
oliver@...
Send Email
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...
Jonathan Roewen
consulatewizard
Offline Send Email
Jun 4, 2006
6:42 pm
6032
... 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...
Jonathan Roewen
consulatewizard
Offline Send Email
Jun 4, 2006
6:52 pm
6033
... 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...
Jon Harrop
harropjon
Offline Send Email
Jun 4, 2006
6:59 pm
6034
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@...
Send Email
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...
Jonathan Roewen
consulatewizard
Offline Send Email
Jun 4, 2006
8:07 pm
6036
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@...
Send Email
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@...
Send Email
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@...
Send Email
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. ...
Jonathan Roewen
consulatewizard
Offline Send Email
Jun 4, 2006
9:50 pm
6040
... 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...
Jonathan Roewen
consulatewizard
Offline Send Email
Jun 4, 2006
9:54 pm
6041
... They're different compilers, and also target different instruction sets. The ocamlopt is reportedly very good at optimising the generated code. The...
Jonathan Roewen
consulatewizard
Offline Send Email
Jun 4, 2006
9:59 pm
6042
... 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@...
Send Email
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@...
Send Email
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,...
Frederick Akalin
fred_akalin
Online Now Send Email
Jun 4, 2006
11:37 pm
Messages 6015 - 6044 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help