* Please a simple Camlp5 example
@ 2008-02-28 15:47 Fabrice Marchant
2008-02-28 17:15 ` [Caml-list] " Richard Jones
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Marchant @ 2008-02-28 15:47 UTC (permalink / raw)
To: caml-list
Hi !
Aware that this belongs to beginners-list, I first posted there
three weeks ago, but without any answer :
I bet this kind of code should be rather common :
let string_of_piece_type = function
King -> "King"
| Queen -> "Queen"
| Rook -> "Rook"
| Bishop -> "Bishop"
| Knight -> "Knight"
| Pawn -> "Pawn"
Please have you got an example where the macro helps to implement such kind of "string_of_type" function ?
Thanks,
Fabrice
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-28 17:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-28 15:47 Please a simple Camlp5 example Fabrice Marchant
2008-02-28 17:15 ` [Caml-list] " Richard Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox