Ok, looking at the linear-algebra VLA stuff now. Thanks for the detailed reply and suggestion.
(and apologies to original OP for veering off-topic... the new ndslice package looks like a pretty cool addition the D libraries, I'll be having a look at that too)