Version française
Home     About     Download     Resources     Contact us    
Browse thread
specifying the type of an argument with more than one #classpath
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Edgar Friendly <thelema314@g...>
Subject: Re: [Caml-list] specifying the type of an argument with more than one #classpath
Peng Zang wrote:
> Is there some simple trick people have found for specifying various type 
> constraints on arguments?

How about something like:
let takesomefooable_and_barable x =
	ignore(lazy(x#foo));
	ignore(lazy(x#bar));
	x

E