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

Nil is not supposed to be an iterator anymore in Rakudo #3178

Closed
p6rt opened this issue Jul 1, 2013 · 9 comments
Closed

Nil is not supposed to be an iterator anymore in Rakudo #3178

p6rt opened this issue Jul 1, 2013 · 9 comments

Comments

@p6rt
Copy link

p6rt commented Jul 1, 2013

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

Searchable as RT118717$

@p6rt
Copy link
Author

p6rt commented Jul 1, 2013

From @masak

<lizmat> r​: say Nil.^mro # is this right ?
<camelia> rakudo 567941​: OUTPUT«Nil (Iterator) (Iterable) (Cool) (Any) (Mu)␤»
<TimToady> Nil is not supposed to be an iterator anymore
<jnthn> TimToady​: Yes, but that can't be fixed without the wider Nil changes.
* masak submits rakudobug
<jnthn> It'll need more than just creating the meta-object
<jnthn> It'll need add_parent'ing.
<lizmat> ah, ok, with that order?
<jnthn> lizmat​: Well, it's a single inheritance chain
<lizmat> ok, will do
<jnthn> So just need to add the immediate parent
<jnthn> And you get the rest by default
<jnthn> Just make sure it comes late enough

@p6rt
Copy link
Author

p6rt commented May 25, 2015

From @usev6

As a status update​: Nil is no longer an iterator​:

$ perl6 -e 'say Nil.^mro'
Nil (Cool) (Any) (Mu)

But the recently introduced Empty is​:

$ perl6 -e 'say Empty.^mro'
Empty (Iterator) (Iterable) Nil (Cool) (Any) (Mu)

1 similar comment
@p6rt
Copy link
Author

p6rt commented May 25, 2015

From @usev6

As a status update​: Nil is no longer an iterator​:

$ perl6 -e 'say Nil.^mro'
Nil (Cool) (Any) (Mu)

But the recently introduced Empty is​:

$ perl6 -e 'say Empty.^mro'
Empty (Iterator) (Iterable) Nil (Cool) (Any) (Mu)

@p6rt
Copy link
Author

p6rt commented May 25, 2015

@usev6 - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 12, 2015

From @usev6

A status update after the GLR​:

$ perl6 -e 'say Nil.^mro'
(Nil (Cool) (Any) (Mu))

$ perl6 -e 'say Empty.^mro'
((Slip) (List) (Cool) (Any) (Mu))

So neither Nil nor Empty is Iterator anymore.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Sep 12, 2015

From @usev6

A status update after the GLR​:

$ perl6 -e 'say Nil.^mro'
(Nil (Cool) (Any) (Mu))

$ perl6 -e 'say Empty.^mro'
((Slip) (List) (Cool) (Any) (Mu))

So neither Nil nor Empty is Iterator anymore.

@p6rt
Copy link
Author

p6rt commented Sep 19, 2015

From @usev6

On Sat Sep 12 01​:35​:43 2015, bartolin@​gmx.de wrote​:

A status update after the GLR​:

$ perl6 -e 'say Nil.^mro'
(Nil (Cool) (Any) (Mu))

$ perl6 -e 'say Empty.^mro'
((Slip) (List) (Cool) (Any) (Mu))

So neither Nil nor Empty is Iterator anymore.

I just saw that there is a (passing) test for this in S02-types/nil.t.

I'm closing this ticket as 'resolved'.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Sep 19, 2015

From @usev6

On Sat Sep 12 01​:35​:43 2015, bartolin@​gmx.de wrote​:

A status update after the GLR​:

$ perl6 -e 'say Nil.^mro'
(Nil (Cool) (Any) (Mu))

$ perl6 -e 'say Empty.^mro'
((Slip) (List) (Cool) (Any) (Mu))

So neither Nil nor Empty is Iterator anymore.

I just saw that there is a (passing) test for this in S02-types/nil.t.

I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented Sep 19, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant