caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* down casting ???
@ 1996-06-19  7:03 FAVRE Jean-Marie
  1996-06-20 17:05 ` Didier Remy
  1996-06-20 19:11 ` Jerome Vouillon
  0 siblings, 2 replies; 3+ messages in thread
From: FAVRE Jean-Marie @ 1996-06-19  7:03 UTC (permalink / raw)
  To: caml-list


the :> operator make possible to coerce an expression from a type t1 to a
super type t (this coercion is safe), but how to go from t to t1 ???
(ok, a dynamic check is need, this operation can raise an exception)

When one use collections of object, this kind of feature is useful. isn't it ?

I first believed that using pattern like (x : t1) -> can do the job,
(a kind of typecase construction as it is the case in modula 3).

is it possible ???


	Jean-marie

-- 





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-06-21  9:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-19  7:03 down casting ??? FAVRE Jean-Marie
1996-06-20 17:05 ` Didier Remy
1996-06-20 19:11 ` Jerome Vouillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).