Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add empty Associative and Positional roles; make List/Parcel/EnumMap …

…do them appropriately.
  • Loading branch information...
commit dbdb675a55417f2c66253261d5ab9812222d4d09 1 parent 706682b
@jnthn jnthn authored
View
2  src/core/Associative.pm
@@ -0,0 +1,2 @@
+my role Associative {
+}
View
2  src/core/EnumMap.pm
@@ -1,4 +1,4 @@
-my class EnumMap {
+my class EnumMap does Associative {
# declared in BOOTSTRAP.pm:
# has $!storage; # Parrot Hash PMC of key->value mappings
View
2  src/core/List.pm
@@ -1,4 +1,4 @@
-class List {
+class List does Positional {
# declared in BOOTSTRAP.pm:
# is Iterable; # parent class
# has Mu $!items; # RPA of our reified elements
View
2  src/core/Parcel.pm
@@ -1,4 +1,4 @@
-my class Parcel {
+my class Parcel does Positional {
has $!storage; # RPA of Parcel's elements
method flat() {
View
2  src/core/Positional.pm
@@ -0,0 +1,2 @@
+my role Positional {
+}
View
2  tools/build/Makefile.in
@@ -120,6 +120,8 @@ CORE_SOURCES = \
src/core/stubs.pm \
src/core/natives.pm \
src/core/control.pm \
+ src/core/Positional.pm \
+ src/core/Associative.pm \
src/core/Mu.pm \
src/core/Any.pm \
src/core/Code.pm \
Please sign in to comment.
Something went wrong with that request. Please try again.