Groups | Search | Server Info | Login | Register


Groups > perl.perl5.changes > #34424

[Perl/perl5] 73f241: class.c: allow array fields w/ empty initializer

Newsgroups perl.perl5.changes
Date 2026-03-02 22:36 -0800
Message-ID <Perl/perl5/push/refs/heads/blead/16098f-686476@github.com> (permalink)
Subject [Perl/perl5] 73f241: class.c: allow array fields w/ empty initializer
From perl5-changes@perl.org (Lukas Mai via perl5-changes)

Show all headers | View raw


  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 73f24195f701445f3ff9fcc29dd68b0dfc084337
      https://github.com/Perl/perl5/commit/73f24195f701445f3ff9fcc29dd68b0dfc084337
  Author: Lukas Mai <lukasmai.403@gmail.com>
  Date:   2026-03-03 (Tue, 03 Mar 2026)

  Changed paths:
    M class.c
    M t/class/field.t

  Log Message:
  -----------
  class.c: allow array fields w/ empty initializer

    class Foo {
        field @bar = ();
    }
    Foo->new;

This code (note the empty initializer list on the array field) would
trip an assert() on DEBUGGING perls.

Fixes #24246.


  Commit: 686476440bcaa036fdd1f6abec6fc039c6277025
      https://github.com/Perl/perl5/commit/686476440bcaa036fdd1f6abec6fc039c6277025
  Author: Lukas Mai <lukasmai.403@gmail.com>
  Date:   2026-03-03 (Tue, 03 Mar 2026)

  Changed paths:
    M pod/perldelta.pod

  Log Message:
  -----------
  perldelta for empty array field initializer fix


Compare: https://github.com/Perl/perl5/compare/16098f4c5627...686476440bca

To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications

Back to perl.perl5.changes | Previous | Next | Find similar


Thread

[Perl/perl5] 73f241: class.c: allow array fields w/ empty initializer perl5-changes@perl.org (Lukas Mai via perl5-changes) - 2026-03-02 22:36 -0800

csiph-web