Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] Guards vs. conditionals
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Basile STARYNKEVITCH <basile@s...>
Subject: [Caml-list] Can One Define LISP-like Macros in Ocaml?
>>>>> "Dave" == Dave Newman <tinman@pobox.com> writes:

    Dave> Seeing the LISP like output from -dlambda reminded me of a
    Dave> question I've had about ocaml.

    Dave> Is there any support for defining macros in ocaml akin to
    Dave> LISP defmacro?

That is what is camlp4 for. Use camlp4. See
http://caml.inria.fr/camlp4/index.html 

-- 

Basile STARYNKEVITCH         http://starynkevitch.net/Basile/ 
email: basile<at>starynkevitch<dot>net 
alias: basile<at>tunes<dot>org 
8, rue de la Faïencerie, 92340 Bourg La Reine, France
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners