[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Olivier Andrieu <andrieu@i...> |
| Subject: | Re: [Caml-list] camlp4r [ $list:some_list$ ] ? |
> Lukasz Dobrek [Thu, 21 Oct 2004]: > Hallo, > > Simple question but, it took me already a while and stooped me in > the middle of something which was suppose to be simple, fast, nice, > and easy. This is a camlp4 FAQ : http://caml.inria.fr/camlp4/manual/manual010.html#toc36 > The question is simple: > - Why code placed at the end of this letter does not compile. I use > following command to compile it: You can't build lists this way, you have to apply the constructors yourself : let build_list expr_list = List.fold_right (fun x l -> <:expr< [$x$ :: $l$] >>) expr_list <:expr< [] >> -- Olivier ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners