Browse thread
Camlp4. print variable value to target source.
[
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: | Jeremy Yallop <jeremy.yallop@e...> |
| Subject: | Re: [Caml-list] Camlp4. print variable value to target source. |
Quoting ?????? ??????? <serp@stork.ru>:
> Exitst any way to do such things?
>
> ------
> let t = <:ctyp<int>> in
> <:str_item<let t = ?content of t here? >>
I think that you're looking for this:
let t = <:expr< <:ctyp<int>> >> in
<:str_item<let t = $t$ >>
although I'm curious as to why.
Jeremy.
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.