Version française
Home     About     Download     Resources     Contact us    
Browse thread
status of some big "important" features?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: John Max Skaller <skaller@o...>
Subject: Re: status of some big "important" features?
Daniel de Rauglaudre wrote:
> 
> Hi,
> 
> On Tue, Dec 26, 2000 at 03:47:08PM -0800, Chris Hecker wrote:
> 
> > PS.  Minor question I thought of the other day...is there any way to
> > write "nth" for tuples 

> Impossible in Camlp4, it is a typing problem.

	Requires overloading. Use something like:

	let proj_3_5 (_,_,x,_,_) = x

which is easy enough to define when you need it,
or just write

	(match tup with (_,_,x,_,_) -> x)


-- 
John (Max) Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net