Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] baffled by semicolon
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Brown <caml-list@d...>
Subject: Re: [Caml-list] baffled by semicolon
On Wed, Aug 25, 2004 at 08:22:33PM -0700, briand@aracnet.com wrote:

> let area = GMisc.drawing_area ~packing:window#add ()
> ;;
> 
> let w = area#misc#realize ()
> ;

Without looking at the library you are using, I would guess that the
'realize' method doesn't take an argument.  As such, the () is extraneous,
although I'm not sure how it is parsing.

The 'drawing_area" is a function and not a method, and is required to have
at least one required argument.

Dave

-------------------
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