caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Mario Pereira <mariojppereira@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] type-safe printf
Date: Tue, 13 Sep 2016 17:25:51 +0200	[thread overview]
Message-ID: <dfc07afd-9227-137e-78c2-c37442b4606a@gmail.com> (raw)
In-Reply-To: <337861473779549@web6h.yandex.ru>

Hi,

You can do it using GADTs. However, I am not sure if this is explained 
somewhere.

Le 13/09/2016 à 17:12, Андрей Бергман a écrit :
> Hello,
>
> is there a good article or just short explanation how compile-type checking of Printf arguments works?
>
> Does it require special compiler support like in C++ compilers/analyzers, or one can somehow do the trick of parsing string literal using Ocaml language itself? (actually latter does not look possible to me)
>
> Thanks,
>      Andrey.
>


  reply	other threads:[~2016-09-13 15:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13 15:12 Андрей Бергман
2016-09-13 15:25 ` Mario Pereira [this message]
2016-09-13 15:36   ` Maxime Dénès
2016-09-13 15:31 ` Kakadu
2016-09-13 15:40   ` Daniel Bünzli
2016-09-14 11:19   ` Oleg
2016-09-13 15:38 ` David Allsopp
2016-09-13 17:54 ` Андрей Бергман

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=dfc07afd-9227-137e-78c2-c37442b4606a@gmail.com \
    --to=mariojppereira@gmail.com \
    --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).