Because this is the most generic definition and therefor it is not allowed to define DIM.
But I can write a explicit version for DIM3 to avoid compile problems if someone use a higher dimension.