From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA21771; Wed, 16 Jan 2002 21:12:55 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA21966 for ; Wed, 16 Jan 2002 21:12:54 +0100 (MET) Received: from relay-2v.club-internet.fr (relay-2v.club-internet.fr [194.158.96.113]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g0GKCrv09107 for ; Wed, 16 Jan 2002 21:12:53 +0100 (MET) Received: from warp (lns01v-6-116.w.club-internet.fr [213.44.245.116]) by relay-2v.club-internet.fr (Postfix) with SMTP id C129C1ABF for ; Wed, 16 Jan 2002 21:12:51 +0100 (CET) Message-ID: <001601c19ec9$bfe251e0$eb00a8c0@warp> From: "Warp" To: "OCaml" Subject: [Caml-list] Type hidding Date: Wed, 16 Jan 2002 21:09:48 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello ! I'm having theses functions : external set_window_data : wnd:hwnd -> 'a -> unit = "set_window_data" external get_window_data : wnd:hwnd -> 'a = "get_window_data" I know that's very type-unsafe and all, but i really need the user to be able to put any kind of data into it. If you got another idea, please let me know. BTW, then with my handle i'm doing that : (set_window_data wnd 0); (print_int (get_window_data wnd)); but it raises (about the call the get_window_data ) : This expression has type wnd:hwnd -> 'a but is here used with type int I've tried to "force" the return value to int but it doesn't seems to work. Any help welcomed. Warp ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr