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.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 704 - 733 of 11541   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
704
Hello, I want to write tables of values/codes. It is given the number of digits of a code and the number of possible values for each digit (base of the code). ...
oliver@...
Send Email
Jan 3, 2003
12:35 pm
705
Why do the standard libraries use ";;" between definitions? Is this purely a hangover from an older syntax, or is there a useful purpose served? (Ie, should I...
bwv211mail <bwv211mai...
bwv211mail
Offline Send Email
Jan 7, 2003
11:22 pm
706
... It has at least two advantages: 1) It makes explicit your wish to end a top-level statement. This tends to make the compiler generate more understandable...
Issac Trotts
issac_trotts
Offline Send Email
Jan 8, 2003
12:19 am
707
... Hello to everybody and Happy New Year to all. I've gone a long way round trying to make my way out of GTK and long holidays... here are my discoveries. 1)...
Stalkern 2
stalkern2
Offline Send Email
Jan 8, 2003
11:56 pm
708
Stalkern 2 <stalkern2@...> writes: [...] ... [...] ... well, It would be better to use a mutable instance variable, but yes you mat need mutable state to do...
Remi VANICAT
dl_ens
Offline Send Email
Jan 9, 2003
10:05 am
709
Hello Everyone, Thank you all for making such a great language/toolset! I am new to this functional programming/OCaml but i already like it al lot. I have...
sanderhahn <shahn@...>
sanderhahn
Offline Send Email
Jan 9, 2003
10:35 am
710
Hi, ... The problem may come from the environment variable CAMLP4LIB. Check it is not set, or set it to "C:\Program Files\Objective Caml\lib\camlp4" -- Daniel...
Daniel de Rauglaudre
daniel.de_rauglaudre@...
Send Email
Jan 9, 2003
11:04 am
711
Hello Daniel! [Setting CAMLP4LIB environment variable] Yes, that fixed the problem! Sorry for bugging you with beginner questions :-) Thank you! Sander Hahn...
sanderhahn <shahn@...>
sanderhahn
Offline Send Email
Jan 9, 2003
12:50 pm
712
... This is after all a list for beginners:) If you can't ask it here, where would you ask it? Regards. Johann -- Johann Spies Telefoon: 021-808 4036...
Johann Spies
jspies@...
Send Email
Jan 9, 2003
1:39 pm
713
... I've tried to do that made it in a different way: I could not declare a val mutable using "self" because instances of the same class seem unwilling to use...
Stalkern 2
stalkern2
Offline Send Email
Jan 9, 2003
4:27 pm
714
... It why you have to use a mutable instance : you need to set it to some dummy value, then initializing it to its real value after the construction of the...
Remi VANICAT
dl_ens
Offline Send Email
Jan 9, 2003
6:31 pm
715
... No, the C compiler binary is hard coded. ... Yes, you will need Cygwin, but the recompilation is pretty straight-forwarward -- just follow readme.win32...
Dmitry Bely
dbely@...
Send Email
Jan 11, 2003
5:26 am
716
The problem is Labltk has a new syntax different than the old Camltk library. You no longer specify the Tk widget attributes using the bracketed syntax as in...
spooky_jesse <spooky_...
spooky_jesse
Offline Send Email
Jan 11, 2003
7:08 pm
717
Howdy, I don't know what development setup you have, but I highly recommend learning emacs. You can use emacs to leverage the advantage of the ocaml toplevel...
spooky_jesse <spooky_...
spooky_jesse
Offline Send Email
Jan 11, 2003
7:29 pm
718
I haven't spent a lot of time thinking about your problem but the first thing that popped into my mind was why use a list when you can define your own type...
spooky_jesse <spooky_...
spooky_jesse
Offline Send Email
Jan 11, 2003
8:25 pm
719
... because, generally speaking, it's better to use already define data-structure when you can : it's more readable and there are some function in the stdlib...
Remi VANICAT
dl_ens
Offline Send Email
Jan 13, 2003
10:23 am
720
Hello, I tried the ocamllex/ocamlyacc-example, which is given in the Ocaml reference manual. It's nice: It needs not much code and works correctly. :) It's...
oliver@...
Send Email
Jan 13, 2003
10:25 am
721
... This likely occurs because you have not modified the yacc rules consequently. The types are defined in the type part of the yacc file. They are used in the...
Stalkern 2
stalkern2
Offline Send Email
Jan 13, 2003
11:10 am
722
... well, in the parser, the lexer return token to the parser (token are the PLUS, MINUS ... INT of int one may add VAR of string if needed (you have to add ...
Remi VANICAT
dl_ens
Offline Send Email
Jan 13, 2003
1:07 pm
723
Hi, ... Yes, I know. ... Well. I may want it, but maybe I don't want it. In the case I want to solve (the "language" I want to implement), I only have to set...
oliver@...
Send Email
Jan 13, 2003
5:45 pm
724
oliver@... writes: [...] ... Yes [...] -- Rémi Vanicat vanicat@... http://dept-info.labri.u-bordeaux.fr/~vanicat...
Remi VANICAT
dl_ens
Offline Send Email
Jan 13, 2003
6:59 pm
725
... That is exactly the point: your actions are typed to int, but then you switched to unit. Ocamlyacc won't let you go on this way! A quick and dirty solution...
Stalkern 2
stalkern2
Offline Send Email
Jan 14, 2003
7:22 am
726
... well, the best solution is without any doubt the definition of the string_or_int type and the use of it. -- Rémi Vanicat vanicat@... ...
Remi VANICAT
dl_ens
Offline Send Email
Jan 14, 2003
11:11 am
727
... [...] OK, here I am. Another little -ehm!- point with ocaml + GTK is that it's 99% OOP... now I've read the great ocaml OOP tutorial by Didier Rémy and I...
Stalkern 2
stalkern2
Offline Send Email
Jan 14, 2003
3:32 pm
728
... Yes, but it's surely better to define a tree as type 'a tree = Node of 'a tree * 'a * 'a tree ... Rather than mess with lists and 2n/2n+1 formula... what...
spooky_jesse <spooky_...
spooky_jesse
Offline Send Email
Jan 15, 2003
8:02 pm
729
Hi, ... OK, the confusing thing is, that the lexer (written in lexer.mll) only gives back the values in appropriate types, but the declaration of the types is...
oliver@...
Send Email
Jan 15, 2003
8:30 pm
730
Hello OCaml/Camlp4-people! I am unable to define an anonymous parser inside my parser when it is ... let s = [<'5; '6; '7>];; let t = [<'3; '3; '3; '3; s;...
sanderhahn <shahn@...>
sanderhahn
Offline Send Email
Jan 15, 2003
8:37 pm
731
Hi, ... It is because it is interpreted as: y = threes; x = parser [<'4>] -> 4 | [<>] -> (0; '5 ?? "'5' expected") To avoid that, write your parser between...
Daniel de Rauglaudre
daniel.de_rauglaudre@...
Send Email
Jan 15, 2003
8:44 pm
732
... Well, of course, when you need a tree, you have to define it, but, when you need list, you should use those of the stdlib. the type : type 'a code = End of...
Remi VANICAT
dl_ens
Offline Send Email
Jan 15, 2003
9:07 pm
733
... Let's stay cool... and step back a little. I know a very sound way of correcting myself :-) It's based upon tracking my moves stepwise, starting from the...
Stalkern 2
stalkern2
Offline Send Email
Jan 15, 2003
9:35 pm
Messages 704 - 733 of 11541   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

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