structs, templates, alias
Robert Clipsham
robert at octarineparrot.com
Sun Apr 25 12:10:34 PDT 2010
On 25/04/10 19:15, Ellery Newcomer wrote:
> Yeah, that's about what I do. The trouble is getting blit to know which
> field is the length field. I suppose you could pass an index into the
> tuple to the substructure. That still wouldn't fix the substructure
> being able to modify the field length.
I don't know how the input data is formatted, but an array is always in
the form:
----
struct
{
size_t length;
void* ptr;
}
----
So it shouldn't be a problem knowing what offset to write the
length/elements at.
More information about the Digitalmars-d-learn
mailing list