February 27, 2015 Typo in DIP25 ? | ||||
---|---|---|---|---|
| ||||
Hi, In DIP25, what is the meaning of pairing an open parenthesis with a closing curly brace? Is this a typo? >From Dec 28, 2014: http://wiki.dlang.org/?title=DIP25&oldid=5279#In_a_nutshell ref int fun(ref int a} { return a; } // ERROR ref int fun(ref inout int a} { return a; } // FINE >From today: http://wiki.dlang.org/DIP25#In_a_nutshell ref int fun(ref int a} { return a; } // ERROR ref int gun(return ref int a} { return a; } // FINE ref T hun(T)(ref T a} { return a; } // FINE, templates use deduction Thanks! -Parke |
February 27, 2015 Re: Typo in DIP25 ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Parke | On 2/27/15 12:22 PM, Parke via Digitalmars-d wrote:
> Hi,
>
> In DIP25, what is the meaning of pairing an open parenthesis with a
> closing curly brace? Is this a typo?
>
>>From Dec 28, 2014:
>
> http://wiki.dlang.org/?title=DIP25&oldid=5279#In_a_nutshell
>
> ref int fun(ref int a} { return a; } // ERROR
> ref int fun(ref inout int a} { return a; } // FINE
>
>>From today:
>
> http://wiki.dlang.org/DIP25#In_a_nutshell
>
> ref int fun(ref int a} { return a; } // ERROR
> ref int gun(return ref int a} { return a; } // FINE
> ref T hun(T)(ref T a} { return a; } // FINE, templates use deduction
>
> Thanks!
>
> -Parke
Fixed, thanks. -- Andrei
|
Copyright © 1999-2021 by the D Language Foundation