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
Followup: creating fresh objects of type 'self
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-04-12 (06:43)
From: Markus Mottl <mottl@m...>
Subject: Followup: creating fresh objects of type 'self
There is probably no sensible answer to the question in my former mail:

In the case of parameterized classes it would be impossible to call a
constructor of type 'self (unknown number/type of parameters). Could
have thought about this faster... ;-)

Hm, I fear the only way to get the intended result without too much
effort is to restrict the interface of the self-object when it is passed
to another instance of its class...

Best regards,
Markus Mottl

Markus Mottl,,