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
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: 2000-12-30 (19:10)
From: Daniel de Rauglaudre <daniel.de_rauglaudre@i...>
Subject: Re: status of some big "important" features?

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 (as opposed to "fst", which is hard-coded to
> 2-tuples)?  This is related to the overloading and generic questions
> above, but it also touches on some introspection issues, since nth
> would need to know the "length" of the tuple to either recurse or
> loop.  I guess I could use camlp4 for this if I really wanted
> to...couldn't I?

Impossible in Camlp4, it is a typing problem.