How to declare function with the same call signature as another?
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Nov 23 14:48:17 PST 2016
On Wednesday, 23 November 2016 at 22:28:57 UTC, Tofu Ninja wrote:
> On Wednesday, 23 November 2016 at 22:19:28 UTC, ketmar wrote:
>> On Wednesday, 23 November 2016 at 22:14:25 UTC, Tofu Ninja
>> wrote:
>>> What is a (ref int)? A tuple with "ref int" as its only
>>> member? Since when is ref int a type?
>>
>> it is "type with modifier", like "const int" or "immutable
>> int".
>
> Since when has ref been a type qualifier? It has always been a
> parameter/function attribute.
which is technically type qualifier. it just forbidden (in
grammar) to use it anywhere except arg declaration.
More information about the Digitalmars-d-learn
mailing list