develooper Front page | perl.perl5.changes | Postings from November 2021

[Perl/perl5] a64a1b: builtin.c: Fix C++ compilation errors

From:
Dagfinn Ilmari Mannsåker via perl5-changes
Date:
November 30, 2021 17:31
Subject:
[Perl/perl5] a64a1b: builtin.c: Fix C++ compilation errors
Message ID:
Perl/perl5/push/refs/heads/blead/6a2e75-a64a1b@github.com
  Branch: refs/heads/blead

  Home:   https://github.com/Perl/perl5

  Commit: a64a1b916a4d7dc71f19c660f970fb7e942c2735

      https://github.com/Perl/perl5/commit/a64a1b916a4d7dc71f19c660f970fb7e942c2735

  Author: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>

  Date:   2021-11-30 (Tue, 30 Nov 2021)



  Changed paths:

    M builtin.c



  Log Message:

  -----------

  builtin.c: Fix C++ compilation errors



C++ does not allow `goto` across initalisations of variables that are

in scope at the label, so just get rid of the `goto`.



An alternative would be to start a new scope after the first `goto`,

so that the variables aren't in scope any more at the label, but I

think this is neater.








nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About