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

Subroutines are rw in Rakudo #1312

Closed
p6rt opened this issue Sep 23, 2009 · 6 comments
Closed

Subroutines are rw in Rakudo #1312

p6rt opened this issue Sep 23, 2009 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 23, 2009

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

Searchable as RT69318$

@p6rt
Copy link
Author

p6rt commented Sep 23, 2009

From @masak

<masak> rakudo​: sub foo { say "OH HAI" }; &foo = &say; foo
<p6eval> rakudo 0eaf62​: OUTPUT«␤»
<moritz_> excuse me?
<masak> :)
<masak> it's a bug, right?
<moritz_> yes, but what is the bug?
<masak> I reassigned &foo to &say.
<masak> and Rakudo let me.
<moritz_> that &foo is assignable? or that it doesn't print the "OH HAI"+
<masak> that &foo is assignable.
<moritz_> ok
<masak> the non-printing of "OH HAI" is just a consequence of &foo
being assignable.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Sep 28, 2009

From @pmichaud

On Wed, Sep 23, 2009 at 05​:10​:04AM -0700, Carl Mäsak wrote​:

<masak> rakudo​: sub foo { say "OH HAI" }; &foo = &say; foo

Confirmed that this is a bug... it should be fixed when we
default PMCs to be readonly instead of requiring a separate
"readonly" flag as we do now.

Then the above will result in "Cannot write to readonly
variable".

Pm

@p6rt
Copy link
Author

p6rt commented Sep 28, 2009

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

@p6rt
Copy link
Author

p6rt commented Mar 11, 2010

From @moritz

fixed, and tested in S02-builtin_data_types/sigils-and-types.t

@p6rt
Copy link
Author

p6rt commented Mar 11, 2010

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

@p6rt
Copy link
Author

p6rt commented Mar 11, 2010

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

@p6rt p6rt closed this as completed Mar 11, 2010
@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