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] undocumented external ... = "%identity"
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefano Zacchiroli <zack@b...>
Subject: [Caml-list] undocumented external ... = "%identity"
It seems to me that the "%identity" feature, as in

  external unsafe_cast : 'a obj -> 'b obj = "%identity"

is undocumented. Am I wrong? If not is there any particular reason for
so? According to is
not meant to be used by the end user, but if it's better than Obj.magic
and used by lablgtk I see no reason to not mention it in the
"Interfacing C with Objective Caml" chapter of the OCaml documentation.
Maybe with a huge disclaimer ...


Stefano Zacchiroli  --  Master in Computer Science @ Uni. Bologna, Italy
zack@{,,}  -
"  I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!  " -- G.Romney

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