Skip to content

Commit

Permalink
Revert "Make List.$!reified a List instead of Mu"
Browse files Browse the repository at this point in the history
This reverts commit e48fb80.

It doesn't make sense to have an attribute of type A inside type A.
  • Loading branch information
lizmat committed Feb 26, 2017
1 parent 796b6a8 commit 8e250db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Metamodel/BOOTSTRAP.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -2826,10 +2826,10 @@ BEGIN {
Nil.HOW.compose_repr(Nil);

# class List is Cool {
# has List $!reified;
# has Mu $!reified;
# has Mu $!todo;
List.HOW.add_parent(List, Cool);
List.HOW.add_attribute(List, scalar_attr('$!reified', List, List));
List.HOW.add_attribute(List, scalar_attr('$!reified', Mu, List));
List.HOW.add_attribute(List, scalar_attr('$!todo', Mu, List));
List.HOW.compose_repr(List);

Expand Down
2 changes: 1 addition & 1 deletion src/core/List.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ my class List does Iterable does Positional { # declared in BOOTSTRAP
# class List is Cool
# The reified elements in the list so far (that is, those that we already
# have produced the values for).
# has List $!reified;
# has $!reified;
#
# Object that reifies the rest of the list. We don't just inline it into
# the List class itself, because a STORE on Array can clear things and
Expand Down

0 comments on commit 8e250db

Please sign in to comment.