`ref T` should be a type!!

Rubn where at is.this
Wed Apr 3 20:00:48 UTC 2019


On Tuesday, 2 April 2019 at 08:05:25 UTC, Walter Bright wrote:
> But they [arrays of reference] are not allowed in C++, because 
> ref is a storage class pretending to be a type.

And we've come back fully circle. This is not the reason at all 
why an array of references is not allowed. You can't have 
pointers to references, and without pointers you can't have a 
full array implementation. How much sense would it make if you 
could only pass an array by reference? Not very much.




More information about the Digitalmars-d mailing list