Browse thread
Bigarray and polymorphic functions
- matthieu.dubuget
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2005-09-28 (12:46) |
From: | matthieu.dubuget <matthieu.dubuget@l...> |
Subject: | Bigarray and polymorphic functions |
Is it possible to write polymorphic functions with Bigarray's as argument? Something like let p b = match Array1.kind b with int8_signed -> "first case" |int8_unsigned -> "second case" | _ -> assert false but which could compile? After some tries, I was not able to find any solution. Salutations Matthieu Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)