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

Methods outside class declarations #267

Closed
p6rt opened this issue Aug 20, 2008 · 5 comments
Closed

Methods outside class declarations #267

p6rt opened this issue Aug 20, 2008 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Aug 20, 2008

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

Searchable as RT58138$

@p6rt
Copy link
Author

p6rt commented Aug 20, 2008

From @masak

<masak> rakudo​: method x { say self }; x(1)
<polyglotbot> OUTPUT[1␤]
<masak> question​: should methods be allowed outside class declarations? :)
<moritz> don't think so ;-)
* masak files rakudobug

@p6rt
Copy link
Author

p6rt commented Sep 11, 2008

From @jnthn

On Wed Aug 20 00​:45​:53 2008, masak wrote​:

<masak> rakudo​: method x { say self }; x(1)
<polyglotbot> OUTPUT[1␤]
<masak> question​: should methods be allowed outside class declarations? :)
<moritz> don't think so ;-)
* masak files rakudobug

They are allowed outside of class definitions, but only if they are
anonymous. So I have now added some code to the compiler (in r30990) to
check and whine if you write a named method outside of a class, role or
grammar.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Sep 11, 2008

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

@p6rt
Copy link
Author

p6rt commented Sep 11, 2008

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

@p6rt p6rt closed this as completed Sep 11, 2008
@p6rt
Copy link
Author

p6rt commented Feb 24, 2009

From @masak

Reopening this ticket because the bug it claims to have fixed has reappeared.

We should probably add a regression bug for this in the spectests.

// Carl

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