This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_scalarvoid(): add comment saying what it does
authorDavid Mitchell <davem@iabyn.com>
Wed, 29 May 2019 08:49:19 +0000 (09:49 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 24 Jun 2019 10:40:07 +0000 (11:40 +0100)
It applies void context, which isn't all that obvious just from the
name.

op.c

diff --git a/op.c b/op.c
index f76087a..25f1faa 100644 (file)
--- a/op.c
+++ b/op.c
@@ -1962,6 +1962,8 @@ Perl_scalar(pTHX_ OP *o)
 }
 
 
+/* apply void context to the optree arg */
+
 OP *
 Perl_scalarvoid(pTHX_ OP *arg)
 {