Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006263OCamlOCaml otherlibspublic2013-12-07 18:262014-07-16 14:45
Reporterdbuenzli 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version4.01.0 
Target VersionFixed in Version 
Summary0006263: A function Bigarray.kind_byte_size is missing
DescriptionA function:

val Bigarray.kind_byte_size : ('a, 'b) kind -> int
(** [kind_byte_size k] is the length in bytes of an elements stored in a bigarray of kind [k]. *)

is useful in various contexts and cannot be written without resorting to Obj.magic.
TagsNo tags attached.
Attached Files

- Relationships
related to 0006064resolvedgasche Expose a GADT representation for Bigarray.kind 

-  Notes
(0010713)
dbuenzli (reporter)
2013-12-15 23:28

Btw exposing caml_ba_byte_size as :

val Bigarray.byte_size : ('a, 'b, 'c) t -> int

would be nice too.
(0010789)
yallop (developer)
2014-01-09 22:23

PR6064 makes it possible to write kind_byte_size and byte_size without Obj.magic.
(0010793)
dbuenzli (reporter)
2014-01-12 14:39

Cool, but that's still a function that I already cut and pasted a few times now. You'll most likely need it as soon as you are interfacing polymorphic bigarrays with C code.

- Issue History
Date Modified Username Field Change
2013-12-07 18:26 dbuenzli New Issue
2013-12-07 18:59 gasche Relationship added related to 0006064
2013-12-15 23:28 dbuenzli Note Added: 0010713
2014-01-09 22:23 yallop Note Added: 0010789
2014-01-12 14:39 dbuenzli Note Added: 0010793
2014-07-16 14:45 doligez Status new => acknowledged


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker