From: NightStrike <nightstrike@gmail.com>
To: Jerry D <jvdelisle2@gmail.com>
Cc: GCC Fortran <fortran@gcc.gnu.org>, GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH][stage1] Remove conditionals around free()
Date: Fri, 24 Mar 2023 02:30:14 -0400 [thread overview]
Message-ID: <CAF1jjLtx5-sOGyzduYZZ4yH7J2nPm3UUq+cyxrXULxNj9+Ggfw@mail.gmail.com> (raw)
In-Reply-To: <89899dd9-bee3-e23a-5b50-450641030561@gmail.com>
On Fri, Mar 3, 2023 at 10:14 PM Jerry D via Fortran <fortran@gcc.gnu.org> wrote:
> I am certainly not a C++ expert but it seems to me this all begs for
> automatic finalization where one would not have to invoke free at all.
> I suspect the gfortran frontend is not designed for such things.
+1 for RAII
next prev parent reply other threads:[~2023-03-24 6:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-01 21:28 Bernhard Reutner-Fischer
2023-03-01 21:58 ` Bernhard Reutner-Fischer
2023-03-01 22:54 ` Bernhard Reutner-Fischer
2023-03-01 22:59 ` Andrew Pinski
2023-03-01 23:52 ` Bernhard Reutner-Fischer
2023-03-02 0:39 ` Andrew Pinski
2023-03-02 0:07 ` Steve Kargl
2023-03-02 1:23 ` Jerry D
2023-03-03 23:11 ` Bernhard Reutner-Fischer
2023-03-03 23:32 ` Iain Sandoe
2023-03-04 3:14 ` Jerry D
2023-03-24 6:30 ` NightStrike [this message]
2023-05-08 6:01 ` Bernhard Reutner-Fischer
2023-03-02 3:23 ` Ian Lance Taylor
2023-03-04 10:15 ` Janne Blomqvist
2023-03-22 7:21 ` Eric Gallager
2023-03-08 21:56 ` Thomas Schwinge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAF1jjLtx5-sOGyzduYZZ4yH7J2nPm3UUq+cyxrXULxNj9+Ggfw@mail.gmail.com \
--to=nightstrike@gmail.com \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=jvdelisle2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).