Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

classes don't get a default .perl method #567

Closed
p6rt opened this issue Jan 2, 2009 · 7 comments
Closed

classes don't get a default .perl method #567

p6rt opened this issue Jan 2, 2009 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Jan 2, 2009

Migrated from rt.perl.org#61918 (status was 'resolved')

Searchable as RT61918$

@p6rt
Copy link
Author

p6rt commented Jan 2, 2009

From dave.whipp@gmail.com

  <dwhipp> rakudo​: class A { has $.foo }; my A $a .=new( foo => 42 ); say $a.perl
  <p6eval> rakudo 34835​: OUTPUT«Method 'perl' not found for invocant of
class 'A'␤current instr.​: '_block14' pc 158 (EVAL_13​:73)␤»
  <dwhipp> pugs​: class A { has $.foo }; my A $a .=new( foo => 42 ); say $a.perl
  <p6eval> pugs​: OUTPUT«\A.new((\("foo", 42),)␤»

@p6rt
Copy link
Author

p6rt commented Apr 16, 2009

From @ronaldxs

I think this ticket should be merged with 62002.

BTW - It's partially solved. There seems to be a default .perl method -
it just doesn't dump attributes yet.

@p6rt
Copy link
Author

p6rt commented Apr 16, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jul 17, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in b/t/spec/S02-names_and_variables/perl.t

@p6rt
Copy link
Author

p6rt commented Jun 30, 2010

From @bbkr

On Kiev build​:

[11​:49] <bbkr> rakudo​: class A { has $.foo }; my A $a .=new( foo => 42
); say $a.perl
[11​:49] <p6eval> rakudo 36998b​: OUTPUT«A.new()␤»
[11​:50] <masak> bbkr​: .perl on user-created classes is LTA.
[11​:50] <jnthn> It's also unspec'd.

@p6rt
Copy link
Author

p6rt commented Jul 14, 2010

From @moritz

Mu.perl (which is inherited to user-defined classes) now inlcudes
attribute values in its output, so this problem is solved.
A test in perl.t for it passes now.

@p6rt
Copy link
Author

p6rt commented Jul 14, 2010

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jul 14, 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant