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

attribute accessors made by generate_accessor are not marked "rw" #5164

Closed
p6rt opened this issue Mar 6, 2016 · 4 comments
Closed

attribute accessors made by generate_accessor are not marked "rw" #5164

p6rt opened this issue Mar 6, 2016 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 6, 2016

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

Searchable as RT127665$

@p6rt
Copy link
Author

p6rt commented Mar 6, 2016

From @jonathanstowe

The accessor methods that are generated for rw attributes function correctly but are not actually marked 'rw'​:

class F { has $.foo is rw }; say F.^lookup("foo").rw # False

Whereas they did prior to generate_accessor being used.

The correct details from introspection are useful if later wrapping the methods.

This is Rakudo version 2016.02-88-g7fab8e7 built on MoarVM version 2016.02-8-ga329

@p6rt
Copy link
Author

p6rt commented Mar 9, 2016

From @jnthn

On Sun Mar 06 12​:18​:56 2016, jns+bc@​gellyfish.co.uk wrote​:

The accessor methods that are generated for rw attributes function
correctly but are not actually marked 'rw'​:

class F { has $.foo is rw }; say F.^lookup("foo").rw # False

Whereas they did prior to generate_accessor being used.

The correct details from introspection are useful if later wrapping
the methods.

This is Rakudo version 2016.02-88-g7fab8e7 built on MoarVM version
2016.02-8-ga329

Fixed, and test added in S12-attributes/instance.t.

/jnthn

@p6rt
Copy link
Author

p6rt commented Mar 9, 2016

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

@p6rt p6rt closed this as completed Mar 9, 2016
@p6rt
Copy link
Author

p6rt commented Mar 9, 2016

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

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant