caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Bigarray and polymorphic functions
@ 2005-09-28 12:46 matthieu.dubuget
  0 siblings, 0 replies; only message in thread
From: matthieu.dubuget @ 2005-09-28 12:46 UTC (permalink / raw)
  To: caml-list

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)




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-28 12:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-28 12:46 Bigarray and polymorphic functions matthieu.dubuget

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).