D Primary Type Syntax is Essentially Implemented!
Quirin Schroll
qs.il.paperinik at gmail.com
Wed May 24 11:02:46 UTC 2023
On Tuesday, 23 May 2023 at 22:39:44 UTC, Richard (Rikki) Andrew
Cattermole wrote:
> Good work cleaning this up.
>
> On 24/05/2023 10:18 AM, Quirin Schroll wrote:
>> |// `a` takes its parameter by value; the parameter returns by
>> reference. // `b` takes its parameter by reference; the
>> parameter returns by value. void a( ref (int function()) ) { }
>> void b((ref int function()) ) { }|
>
> Are you sure that this is correct?
>
> I read this as `a` takes its parameter by reference; the
> argument returns by value.
>
> If this isn't what you intended its a little worrying because
> this is going to cause problems.
You're 100% right, I mixed it up. It's exactly the other way
around.
More information about the Digitalmars-d
mailing list