D does not use `char a[..]` as syntax for anything.
A pointer is declared as `char* p`, and an array as `char[] p`.
A two dimensional array parameter is declared as:
void transpose(double[][] a);
Having to specify the dimensions as separate parameters is an unfortunate design choice:1. It's clumsy to have to carry the dimensions around as separate items, rather than as one item
2. If the wrong X or Y is supplied, you have a massive memory corruption problem
I took the syntax from your article, maybe it is not what D is using now.
It is more expressive to pass the dimensions as separate variables. This is also exactly what other dependently typed languages do. The memory corruption can be avoided by having the compiler check this. I agree though that fat pointers are more convenient and would should also have them as syntax sugar on top of it.
The syntax in the article is what I proposed for C. Sorry that wasn't clear.
Yes, the separate variables is more expressive. It's also clumsy, inelegant, and error-prone. It also only works for function calls - not fields in a struct.