caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Сергей Плаксин" <serp@stork.ru>
To: David Teller <David.Teller@univ-orleans.fr>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] Camlp4. print variable value to target source.
Date: Thu, 11 Sep 2008 16:09:24 +0400	[thread overview]
Message-ID: <1221134964.15737.14.camel@serphost.localdomain> (raw)
In-Reply-To: <1221134550.6226.10.camel@Blefuscu>

On Thu, 2008-09-11 at 13:02 +0100, David Teller wrote:
> On Thu, 2008-09-11 at 14:16 +0400, Сергей Плаксин wrote:
> > Exitst any way to do such things?
> > 
> > ------
> >   let t = <:ctyp<int>> in
> >   <:str_item<let t = ?content of t here? >>
> > ----
> > ||
> > -----
> > let t = Ast.TyId (_loc, Ast.IdLid (_loc, "int"));
> > -----
> 
> That doesn't look correctly typed. However, you can try
> replacing ?contents of t here? with $t$.
> 
> Cheers,
>  David
> 

let t = <:ctyp<int>> in
<:str_item<let t = $t$ >>
=====

This expression has type
  Camlp4.PreCast.Syntax.Ast.ctyp = Camlp4.PreCast.Ast.ctyp
but is here used with type
  Camlp4.PreCast.Syntax.Ast.expr = Camlp4.PreCast.Ast.expr
Command exited with code 2.



      reply	other threads:[~2008-09-11 12:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-11 10:16 Сергей Плаксин
2008-09-11 12:00 ` [Caml-list] " Jeremy Yallop
2008-09-11 12:15   ` Сергей Плаксин
2008-09-11 12:56     ` Nicolas Pouillard
2008-09-11 13:33       ` Сергей Плаксин
2008-09-11 12:02 ` David Teller
2008-09-11 12:09   ` Сергей Плаксин [this message]

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=1221134964.15737.14.camel@serphost.localdomain \
    --to=serp@stork.ru \
    --cc=David.Teller@univ-orleans.fr \
    --cc=caml-list@inria.fr \
    /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;
as well as URLs for NNTP newsgroup(s).