DIP 1040
Quirin Schroll
qs.il.paperinik at gmail.com
Wed Jul 17 23:25:37 UTC 2024
On Wednesday, 17 July 2024 at 18:26:28 UTC, Timon Gehr wrote:
> On 7/16/24 16:41, Quirin Schroll wrote:
>> On Sunday, 14 July 2024 at 10:51:36 UTC, Timon Gehr wrote:
>>> Of course, even more can be done to make move semantics an
>>> even better experience in D, but DIP1040 is a good basis. For
>>> example, I would want: […]
>>>
>>> - a parameter storage class that enforces the parameter was
>>> moved.
>>
>> https://forum.dlang.org/post/yiwpmuhgpasanzakzbdd@forum.dlang.org
>>
>> Something like this?
>
> Yes, for example. (I think an obvious keyword for this would be
> `in`, but that is used in different ways now.)
Well, if `in` is intended to mean “input-only” parameter, how
it’s implemented kind of makes sense, even if it’s hard to use
that way.
More information about the Digitalmars-d
mailing list