Re: [Caml-list] OpenGL ES for iPhone Simulator; working example app

2012-02-01 Thread Christophe Papazian
I found a way to adapt your patch to cross compile ocaml 3.10 with the last Xcode and IOS SDK. But, I still get alignment warnings, AND SEGFAULT if I use some ocaml instructions like (+.) (float addition). However, I can get lucky and compile a stable binary (on iPhone) if I avoid some

Re: [Caml-list] OpenGL ES for iPhone Simulator; working example app

2012-01-30 Thread Christophe Papazian
Dear Jeffrey I tried your solution for ocaml on Xcode 4.2 with iOS 5.0 But I can't find a way to get a good binary. I got some weird alignment warnings on compilation and the application just doesn't work on the iPhone. Do you have plan to update your work for the last versions of Xcode and iOS

Re: [Caml-list] ocamlfind: When using -syntax, the META variable 'preprocessor' must be set

2011-10-09 Thread Christophe Papazian
I got this problem a few days ago, and need a quick fix. Everything was installed but after an upgrade I got the same kind of error. To avoid the problem, i drop the -syntax parameter and replace it with -pp : What *should* work for me : ocamlfind ocamlc -package js_of_ocaml - syntax

Re: [Caml-list] still silly issues on polymorphic types

2011-09-27 Thread Christophe Papazian
Please remember how types can be subtypes of other types : consider val f : int - int val g : int - 'a val h : 'a - int val i : 'a - 'b then the most general type is the type of g and most specific type is type of h. In fact we have a diamond relation between types : hfg hig and i and f

Re: [Caml-list] still silly issues on polymorphic types

2011-09-27 Thread Christophe Papazian
uhm, I have a couple of questions I don't understand on your explanation: - why the most general type is int-'a and not 'a - 'b? Because if I need a function of type int - 'a I can give a function of type 'a - 'b. But if I need a function of type 'a - 'b I can not use a function of type

[Caml-list] ocamljs

2011-09-17 Thread Christophe Papazian
Hi, One year since the last update of ocamljs. And now, ocaml is 3.12.1, lwt is 2.3. So does anyone know when we will see the next update of ocamljs ? thanks ! Christophe -- Caml-list mailing list. Subscription management and archives:

Re: [Caml-list] Odd failure to infer types

2011-09-03 Thread Christophe Papazian
The type of [] is 'a list. This is (strong) polymorphism. Calling a function 'int list - ?' on [] doesn't not remove the polymorphism of []. However, an '_a list array is not polymorphism, it's just the compiler who don't know yet the type inside the lists. And as you give him [], he can't

[Caml-list] caml hump

2011-07-04 Thread Christophe Papazian
When I look at the caml hump, I can see the last 10 entries. This is nice when the last update contained less than 10 new entries. But how can I see the last 20 ? last 50 ? Christophe -- Caml-list mailing list. Subscription management and archives: