From: Olivier Andrieu <andrieu@ijm.jussieu.fr>
To: dobrek@dobrek.de
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] camlp4r [ $list:some_list$ ] ?
Date: Thu, 21 Oct 2004 00:37:41 +0200 (CEST) [thread overview]
Message-ID: <20041021.003741.59483516.oandrieu@nerim.net> (raw)
In-Reply-To: <4176E19E.2070808@dobrek.de>
> 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
next prev parent reply other threads:[~2004-10-20 22:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-20 22:07 Lukasz Dobrek
2004-10-20 22:37 ` Olivier Andrieu [this message]
2004-10-21 6:46 ` Lukasz Dobrek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041021.003741.59483516.oandrieu@nerim.net \
--to=andrieu@ijm.jussieu.fr \
--cc=caml-list@inria.fr \
--cc=dobrek@dobrek.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox