C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Delete...why not a parameter by reference?!

From: Bo Persson <bo_at_[hidden]>
Date: Mon, 25 Aug 2025 05:40:40 +0200
On 2025-08-25 at 02:35, organicoman via Std-Proposals wrote:
> Let me answer your concerns very quickly.
>
> Think about this question.
>
> As an 'expert' why do you think, in the *beginning*, the delete
> expression was not designed as taking a reference to a pointer and null
> it out?
>

This has a simple and well known answer - some features were added to
the language before references existed.

Received on 2025-08-25 03:40:46