[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl5-changes
Subject:    [Perl/perl5] a160da: Define a newLISTOPn() function
From:       Paul Evans via perl5-changes <perl5-changes () perl ! org>
Date:       2023-08-29 10:43:42
Message-ID: Perl/perl5/push/refs/heads/blead/4ea83e-eb6516 () github ! com
[Download RAW message or body]

  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: a160da56a81041dc55119dc79484d624e4e9581a
      https://github.com/Perl/perl5/commit/a160da56a81041dc55119dc79484d624e4e9581a
  Author: Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M embed.fnc
    M embed.h
    M op.c
    M proto.h

  Log Message:
  -----------
  Define a newLISTOPn() function

A va_args-taking function that avoids the caller's need to perform the
three-step newLISTOP(OP_LIST), append children, op_convert_list()
sequence.

This often makes the code compact enough to embed inside "point-free"
optree generating code, by avoiding the need for that intermediate
variable.


  Commit: 2e1462ebf5bbb0a04d9ded34ad66989b8fefe585
      https://github.com/Perl/perl5/commit/2e1462ebf5bbb0a04d9ded34ad66989b8fefe585
  Author: Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M class.c

  Log Message:
  -----------
  Employ the new newLISTOPn() in class.c


  Commit: eb6516ffa3ddb0059def2a460fc63023888bbba7
      https://github.com/Perl/perl5/commit/eb6516ffa3ddb0059def2a460fc63023888bbba7
  Author: Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

  Changed paths:
    M op.c

  Log Message:
  -----------
  Employ the new newLISTOPn() in op.c


Compare: https://github.com/Perl/perl5/compare/4ea83ef92cb6...eb6516ffa3dd
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic