`ref T` should be a type!!

Frank Fuente frfu at anywhere.com
Tue Apr 2 08:24:31 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.

Here's an egg and this is how you suck it...


More information about the Digitalmars-d mailing list