Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] generic programming
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-07-05 (23:02)
From: Dave Berry <daveb@t...>
Subject: Re: [Caml-list] Re: generic programming
At 10:33 05/07/2002, Francois Pottier wrote:
>My memories of STL are vague, but if an iterator is what I think it
>is, then implementing one in O'Caml is pretty straightforward. An
>iterator is a function that returns a function which maintains a
>piece of internal state. 

But can you compile it down to a single increment instruction on a pointer
(for an iterator over an array)?

Also, can you compare two iterators for equality?

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: