`ref T` should be a type!!

Rubn where at is.this
Wed Apr 3 20:03:52 UTC 2019


On Tuesday, 2 April 2019 at 08:11:31 UTC, Walter Bright wrote:
> On 4/1/2019 5:55 PM, Atila Neves wrote:
>> Factually incorrect.
>
> I suspect Rubn has confused the syntactical conflation of 
> arrays with pointers in C, and the implicit coercion of arrays 
> to pointers, as them being the same. They simply aren't the 
> same, as they are semantically separated by one level of 
> indirection.

I have not said they are the same, do regex search of "the same", 
and you will see only you and someone else have said this 
formation of words.

> I wrote an article about it calling this "C's Biggest Mistake", 
> as this has led to decades of crashes and malware infestations:
>
> https://www.digitalmars.com/articles/b44.html

Yes arrays only being able to be represented as pointers is 
indeed a downfall of C/C++.


More information about the Digitalmars-d mailing list