From: Chris Hecker <checker@d6.com>
To: Jeremy Fincher <tweedgeezer@hotmail.com>, caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] Two quick questions.
Date: Mon, 02 Jul 2001 01:03:04 -0700 [thread overview]
Message-ID: <4.3.2.7.2.20010702010116.02a27df0@shell16.ba.best.com> (raw)
In-Reply-To: <F14bXCH5n00zepDI8NF0001e3c0@hotmail.com>
>First: I looked at the source code to the Printf module to see exactly how Printf.printf does type checking on the format strings, since I'd like to implement something similar (for reimplementing the "struct" python module, which uses format strings to pack/unpack arbitrary binary data) but I honestly had no idea how it worked. Is something like what Printf.printf does way too "deep magic" for a newbie to O'Caml to do, or are there any good explanations of how it does what it does?
It is "deep magic", in the sense that it's hacked into the compiler directly. You can use some of the hacks for your own purposes, but you can't change the format string format.
Chris
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next prev parent reply other threads:[~2001-07-02 8:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-02 7:36 Jeremy Fincher
2001-07-02 8:03 ` Chris Hecker [this message]
2001-07-02 11:53 ` wakita
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=4.3.2.7.2.20010702010116.02a27df0@shell16.ba.best.com \
--to=checker@d6.com \
--cc=caml-list@pauillac.inria.fr \
--cc=tweedgeezer@hotmail.com \
/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