`ref T` should be a type!!

Paolo Invernizzi paolo.invernizzi at gmail.com
Tue Apr 2 10:00:58 UTC 2019


On Tuesday, 2 April 2019 at 00:13:13 UTC, Andrei Alexandrescu 
wrote:
> On 4/1/19 7:43 PM, Rubn wrote:
>> On Monday, 1 April 2019 at 20:37:03 UTC, Walter Bright wrote:
>>> [...]
>> 
>> You can try it yourself:
>> 
>> void foo(int* const p) {}
>> void foo(int p[]) {}
>> -----------------------------------------------
>> test.cpp:3:6: error: redefinition of 'foo'
>> void foo(int p[]) {}
>>       ^
>> test.cpp:2:6: note: previous definition is here
>> void foo(int* const p) {}
>>       ^
>> 1 error generated.
>
> The fact that we have somebody teaching Walter Bright the C 
> language to is supremely ironic in wake of the recent 
> discussions.

+1000! But at least it's funny!

:-P


More information about the Digitalmars-d mailing list