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 IAA23980; Sat, 8 Mar 2003 08:57:32 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA23750 for ; Sat, 8 Mar 2003 08:57:31 +0100 (MET) Received: from marble.he.net (marble.he.net [216.218.230.2]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h287vTf25556 for ; Sat, 8 Mar 2003 08:57:30 +0100 (MET) Received: from ucdavis.edu ([208.227.214.58] (may be forged)) by marble.he.net (8.8.6/8.8.2) with ESMTP id XAA13240 for ; Fri, 7 Mar 2003 23:57:27 -0800 Message-ID: <3E69A3A3.5060803@ucdavis.edu> Date: Sat, 08 Mar 2003 00:02:43 -0800 From: Issac Trotts User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020913 Debian/1.1-1 MIME-Version: 1.0 To: OCaml List Subject: Re: [Caml-list] LablTk question References: <3E68FFE1.13162.885C7F1@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; issac:01 trotts:01 ijtrotts:01 caml-list:01 labltk:01 mgushee:01 havenrock:01 widget:01 coerce:01 ucdavis:02 deeper:02 wrote:03 types:03 camltk:04 functions:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk mgushee@havenrock.com wrote: >On 7 Mar 2003 at 19:31, mgushee@havenrock.com wrote: > > > >> pack [coe c; coe r; coe r'] ~side: `Left ~fill: `Y; >> >>Okay, so I dug a little deeper and found that 'coe' is an alias for >>forget_type ... but why? What is the purpose of weakening the widget >>types as they are packed? >> >> > >Duh. Never mind. I realized after asking this that it's in order to >be able to place different widget types together in a list ... though >if 'coe' has any other use, I'd be interested to know about it. > >And I'm still curious about what it stands for. > From the labltk README, "In CamlTk, we have only one widget type, [widget]. This type is equivalent to the LablTk's type [any widget]. Therefore, if you want to apply CamlTk functions to LablTk widget, you can use [coe] function to coerce it to [any widget]." So it's short for "coerce." Hope that helps. -- Issac Trotts ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners