Challenge: write a reference counted slice that works as much as possible like a built-in slice

RazvanN razvan.nitu1305 at
Tue Dec 21 09:28:07 UTC 2021

On Tuesday, 21 December 2021 at 05:01:54 UTC, Tejas wrote:
> On Wednesday, 15 December 2021 at 08:27:25 UTC, RazvanN wrote:
>> [...]
> Sorry for the late reply.
> What is this trick that bypasses destructors?

That was a typo. What I meant was: "There is an easy way to bypass
construction but ...". (What I'm referring to is void 

When I realized, I submitted another forum post but you probably 
missed it.
> Also, I've always heard bad things about Unions, saying how 
> they encourage bad practices like type punning. Is using this 
> Union trick really recommended?

More information about the Digitalmars-d mailing list