Browse thread
[Caml-list] C++ templates to OCaml
- Jonathan Roewen
[
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: | 2005-06-19 (06:53) |
From: | Jonathan Roewen <jonathan.roewen@g...> |
Subject: | [Caml-list] C++ templates to OCaml |
Hi, What's the best way to imitate C++ templates in OCaml? I have some code that makes extensive use of templates that I want to rewrite in OCaml, and using record types and functions is getting messy, and a lot more convoluted than the C++ code. Are objects the way to go here? And if so, can someone give me a simple example of how this would work? Jonathan