refInt = ref int: how to achieve this? or is this a bug?
mw
mingwu at gmail.com
Wed Jun 17 23:02:06 UTC 2020
On Wednesday, 17 June 2020 at 22:50:01 UTC, Stanislav Blinov
wrote:
> On Wednesday, 17 June 2020 at 22:41:21 UTC, mw wrote:
>
>> Here we are discussing how to write:
>>
>> -- f(pass by value) and
>> -- f(pass by ref)
>>
>> in a simple and straight forward way.
>
> f(T) {}
> f(ref T) {}
This alone will not work, have to add more static if's
More information about the Digitalmars-d
mailing list