[
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: | Dave Newman <tinman@p...> |
| Subject: | [Caml-list] Can One Define LISP-like Macros in Ocaml? |
Seeing the LISP like output from -dlambda reminded me of a question
I've had about ocaml.
Is there any support for defining macros in ocaml akin to LISP defmacro?
--Dave
>On Thu, Dec 26, 2002 at 09:55:09PM -0600, Gurr, David (MED, self) wrote:
>> try "ocamlc -dlambda foo.ml"
>
>Wow. That outputs something that looks a lot like LISP. And -dlambda
>seems to be undocumented, at least in the man page and the HTML user's
>manual. What is it intended for?
{{{ text removed }}}
>bash-2.05a$ ocamlc -dlambda foo1.ml
>(setglobal Foo1!
> (seq
> (let (foo/56 (function i/57 (if (>= i/57 500) 1a 0a)))
> (for i/59 1 to 100000
> (ignore (apply foo/56 (apply (field 4 (global Random!)) 1000)))))
> (makeblock 0)))
>
-------------------
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