Perl 6 Cool Perl 6 #99

Metaclasses

There is no Class class

Objects point to the metaclass, making it available via |.HOW' (Higher Order Workings) macro

Introspection takes place through .HOW

Dog.HOW.methods()

Dog.HOW.attributes()

These are shorter:

Dog.^methods()

Dog.^attributes()
Copyright © 2010
http://www.pmichaud.com/2010/pres/