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
Re: Array interface question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-01-24 (14:41)
From: David Monniaux <monniaux@c...>
Subject: Re: Array interface question
On Fri, 22 Jan 1999, Pierre Weis wrote:

> > 	Why is there no creation function which does not take a default
> > value for filling the array?

Perhaps the solution is to have an improved implementation of the 'a
option type, where a NULL pointer would mean "None" and anything else
would be the element of type 'a.

Is there anything wrong with this approach? [except that it could break
some interfaced C code that relies on NULL pointers in "private" types..]

D. Monniaux