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] LablTk question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Issac Trotts <ijtrotts@u...>
Subject: Re: [Caml-list] LablTk question wrote:

>On 7 Mar 2003 at 19:31, 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 Archives:
Bug reports: FAQ:
Beginner's list: