`ref T` should be a type!!

Atila Neves atila.neves at gmail.com
Tue Apr 2 00:55:30 UTC 2019


On Tuesday, 2 April 2019 at 00:06:23 UTC, Rubn wrote:
> On Monday, 1 April 2019 at 23:04:15 UTC, Atila Neves wrote:
>> On Monday, 1 April 2019 at 20:00:34 UTC, Rubn wrote:
>>> On Monday, 1 April 2019 at 13:57:17 UTC, Atila Neves wrote:
>>>> On Monday, 1 April 2019 at 13:09:28 UTC,


>> Funnily enough your example here shows how pointers and arrays 
>> aren't the same thing. The reason you can't have an array of 
>> "voids" in C is because void has no size and the whole thing 
>> is nonsensical. It's a good point though that void is treated 
>> differently in C's type system.
>
> I never said they are the same thing.

"Arrays in C++ are just pointers".

> An array can only (with a minor exception) be represented by a 
> pointer, if a pointer can't exist then neither can the array.

Factually incorrect.




More information about the Digitalmars-d mailing list