Will D always have a way to rebind an arbitrary data type?

Johan j at j.nl
Mon Sep 20 18:31:19 UTC 2021


On Monday, 20 September 2021 at 08:43:48 UTC, FeepingCreature 
wrote:
>
> "There will always be a way in D to write a `@nogc` container 
> type with two operations: `put(T)` and `T get()`, so that the 
> result value of `get` is value identical to the parameter of 
> `put`, *for any arbitrary `T`,* especially value-immutable T, 
> with correct lifetime accounting of the stored value."

I believe this is the reason for the introduction of std::launder 
in C++.

-Johan



More information about the Digitalmars-d mailing list