nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

run-time attributes::get issue #278

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

> perlcc -r -e 'our $anon1; eval q/$anon1 = sub : method { $_[0]++ }/; use 
attributes; @attrs = eval q/attributes::get $anon1/; print qq{ok\n} if "@attrs" 
eq "method"; print "@attrs"'

What is the expected output? What do you see instead?

> perl -e 'our $anon1; eval q/$anon1 = sub : method { $_[0]++ }/; use 
attributes; @attrs = eval q/attributes::get $anon1/; print qq{ok\n} if "@attrs" 
eq "method"; print "@attrs"'
ok
method

Please use labels and text to provide additional information.

Original issue reported on code.google.com by nicolas....@gmail.com on 23 Jan 2014 at 11:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 27 Jan 2014 at 8:46

GoogleCodeExporter commented 9 years ago
testcase added to issue #160 which handles Attribute::Handlers, which does 
run-time attribute evaluation

Original comment by reini.urban on 27 Jan 2014 at 8:47

GoogleCodeExporter commented 9 years ago
test changed with to avoid 760a965 eval.
attributes::get on this anon method works okay.

Original comment by reini.urban on 29 Aug 2014 at 1:30