projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df451b2
)
Subs with builtin attributes shouldn't be made constant
author
Salvador Fandiño
<sfandino@yahoo.com>
Wed, 15 Jun 2005 08:27:00 +0000
(
01:27
-0700)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Thu, 16 Jun 2005 09:45:59 +0000
(09:45 +0000)
Subject: Re: [perl #36297] builtin attrs on subrutine declarations
Message-ID: <
20050615152700
.96320.qmail@web52702.mail.yahoo.com>
p4raw-id: //depot/perl@24865
op.c
patch
|
blob
|
history
diff --git
a/op.c
b/op.c
index
7b4f477
..
814b07d
100644
(file)
--- a/
op.c
+++ b/
op.c
@@
-4295,7
+4295,7
@@
Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
}
#endif
- if (!block || !ps || *ps || attrs)
+ if (!block || !ps || *ps || attrs
|| (CvFLAGS(PL_compcv) & CVf_BUILTIN_ATTRS)
)
const_sv = Nullsv;
else
const_sv = op_const_sv(block, Nullcv);