English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] LablTk question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-03-08 (07:57)
From: Issac Trotts <ijtrotts@u...>
Subject: Re: [Caml-list] LablTk question
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