Re: [Caml-list] Re: oasis

2010-11-29 Thread Anastasia Gornostaeva
On Sun, Nov 28, 2010 at 05:17:35PM +, Sylvain Le Gall wrote: My current state about this solution is: - defines BuildDepends: freetype2 (pkg-config), to make clear that there is a C build-depends - allow to override the defined variable freetype2_cflags and freetype2_libs. If they

[Caml-list] oasis

2010-11-26 Thread Anastasia Gornostaeva
Hello. How can I substitute in setup.ml (not in _oasis file) values for CCOpt and CCLib fields? I think it is better to substitute them from setup.data, if I could to put proper values to setup.data. For example: CCOpt: $freetype_ccopt and put to setup.data output of `freetype-config --clib`

[Caml-list] camlp4 + array

2009-10-04 Thread Anastasia Gornostaeva
Hello. The code let pl = Array.fold_left (fun ls l - :expr $ls$; $`int:l$ ) :expr some_array in :expr [| $pl$ |] produces somelike [| (1; 2; 3; 4) |], i.e the pl in () brackets. How should I do write this code properly? ermine

Re: [Caml-list] fork() and threads in ocaml 3.11

2008-12-18 Thread Anastasia Gornostaeva
On Thu, Dec 18, 2008 at 03:51:48PM +0100, Xavier Leroy wrote: [...] hangs on my FreeBSD 7.0. This could be the same problem reported under MacOS X as PR#4666 in the bug tracker. Apparently, MacOS X doesn't allow a process having multiple threads to perform an exec*() system call. Maybe

Re: [Caml-list] stupid q(2): camlp4

2008-11-14 Thread Anastasia Gornostaeva
On Wed, Nov 12, 2008 at 10:49:34PM +, Richard Jones wrote: [...] You could cheat and have a look at pa_where ... http://bluestorm.info/camlp4/pa_where/list.php http://bluestorm.info/camlp4/pa_where/pa_where.ml.html Ouch, I got it after reading

Re: [Caml-list] stupid q(2): camlp4

2008-11-13 Thread Anastasia Gornostaeva
On Wed, Nov 12, 2008 at 10:49:34PM +, Richard Jones wrote: [...] You could cheat and have a look at pa_where ... http://bluestorm.info/camlp4/pa_where/list.php http://bluestorm.info/camlp4/pa_where/pa_where.ml.html It does not explain why RIGHTA in my code does not work as expected...

[Caml-list] stupid q(2): camlp4

2008-11-12 Thread Anastasia Gornostaeva
Hello. Readihg http://martin.jambon.free.fr/extend-ocaml-syntax.html, I attempt to solve the exercise from chapter 13: Suggested exercise: implement and test a syntax extension which supports a where construct. For instance, a + b where a = 1 and b = 2 means let a = 1 and b = 2 in a + b

Re: [Caml-list] stupid q: camlp4

2008-11-08 Thread Anastasia Gornostaeva
On Sat, Nov 08, 2008 at 09:24:05PM +, Jon Harrop wrote: On Saturday 08 November 2008 20:00:44 Anastasia Gornostaeva wrote: Hello. How can I learn modern Camlp4? The new Camlp4 is not yet fully documented. The official documentation is on a wiki here: http://brion.inria.fr