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

Null PMC access when calling user-declared sub in List:: class #636

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

Null PMC access when calling user-declared sub in List:: class #636

p6rt opened this issue Jan 27, 2009 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Jan 27, 2009

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

Searchable as RT62836$

@p6rt
Copy link
Author

p6rt commented Jan 27, 2009

From @masak

<masak> rakudo​: sub List​::a {}; <1 2 3>.a
<p6eval> rakudo 36054​: OUTPUT«Null PMC access in invoke() [...]

I'm not at all sure subs should be called that way, but a Null PMC
access is always wrong.

@p6rt
Copy link
Author

p6rt commented Feb 12, 2009

From @bacek

On Tue Jan 27 06​:10​:21 2009, masak wrote​:

<masak> rakudo​: sub List​::a {}; <1 2 3>.a
<p6eval> rakudo 36054​: OUTPUT«Null PMC access in invoke() [...]

I'm not at all sure subs should be called that way, but a Null PMC
access is always wrong.

In recent rakudo it complains about routine definition​:

$ ../../parrot perl6.pbc -e 'sub List​::a {}; <1 2 3>.a'
Malformed routine definition at line 1, near "List​::a {}"

Probably as side-effect of jonathan++ STD.pm merging.

--
Bacek

@p6rt
Copy link
Author

p6rt commented Feb 12, 2009

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

@p6rt
Copy link
Author

p6rt commented Feb 12, 2009

From @bacek

On Tue Jan 27 06​:10​:21 2009, masak wrote​:

<masak> rakudo​: sub List​::a {}; <1 2 3>.a
<p6eval> rakudo 36054​: OUTPUT«Null PMC access in invoke() [...]

I'm not at all sure subs should be called that way, but a Null PMC
access is always wrong.

And it actually works​:

$ ../../parrot perl6.pbc -e 'class List is also { method a { say "HI" };
}; <1 2 3>.a'
HI

--
Bacek

@p6rt
Copy link
Author

p6rt commented Jul 2, 2009

From @coke

On Thu Feb 12 12​:43​:59 2009, bacek wrote​:

On Tue Jan 27 06​:10​:21 2009, masak wrote​:

<masak> rakudo​: sub List​::a {}; <1 2 3>.a
<p6eval> rakudo 36054​: OUTPUT«Null PMC access in invoke() [...]

I'm not at all sure subs should be called that way, but a Null PMC
access is always wrong.

And it actually works​:

$ ../../parrot perl6.pbc -e 'class List is also { method a { say "HI"
};
}; <1 2 3>.a'
HI

Per masak, this seems to be resolved.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 2, 2009

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

@p6rt p6rt closed this as completed Jul 2, 2009
@p6rt
Copy link
Author

p6rt commented Jul 5, 2009

From @kyleha

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

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