RfC for language feature: rvalue struct
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Tue Jan 31 18:30:44 UTC 2023
On Tuesday, 31 January 2023 at 18:13:58 UTC, Ola Fosheim Grøstad
wrote:
> E.g. C# introduced "record" in addition to "struct" and "class"
> to get slightly different value semantics, but as far as I can
> tell it is only a rewrite.
Or maybe it isn't (shrug). Anyway, you might want to look at the
C# "with" statement:
https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/records#non-destructive-mutation
More information about the Digitalmars-d
mailing list