Closed dumblob closed 10 years ago
There can't be anything but one those four types: int
, float
, double
and complex
.
I was thinking e.g. about bigint
- not sure if it'll be supported by the array
type, so I wanted to be sure nothing bad will happen.
I'm sure it wasn't, isn't and will not be used like that. Array can possibly contain only fixed-size primitive types, so that the values are laid out in a continuous block of memory. bigint
is variable-size and, moreover, it has actually become a class.
Ok, I wasn't sure about the fixedness and type-checks done by the array type itself. Closing as not a bug.
The declaration
DaoBinary_ReadArr,"fill(self: io::stream, dest: array<@T>, count = 0) => int"
doesn't match theDaoBinary_ReadArr()
function as thecase
construct inside assumes only a few variants and doesn't have a default branch (i.e. thesize_t size;
declaration will implicate garbage insize
when passing it to thefread()
at the end).