Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Add basic meta class based on Class::MOP::Class #7

Open
schwern opened this issue Mar 17, 2014 · 2 comments
Open

Add basic meta class based on Class::MOP::Class #7

schwern opened this issue Mar 17, 2014 · 2 comments

Comments

@schwern
Copy link
Contributor

schwern commented Mar 17, 2014

Like Class::MOP::Class, each Mite class needs a ->meta method to return a meta object. Unlike Class::MOP::Class, this meta class is immutable. It only supplies information.

The goal is to implement a subset of Class::MOP::Class. Just implement the things that return strings and booleans.

Implement...

  • is_immutable (always true)
  • is_mutable (always false)
  • is_anon_class (always false)
  • superclasses (die if used as a setter)
  • subclasses
  • direct_subclasses
  • has_method
  • get_method_list
  • has_attribute
  • get_attribute_list

Hard code as much information as possible at compile time.

@schwern schwern added this to the Release 0.0.1 milestone Apr 2, 2014
@schwern schwern removed this from the Release 0.0.1 milestone Apr 15, 2014
@tobyink
Copy link

tobyink commented Aug 3, 2022

I've moved the Mite issue tracker here.

This is now kind of implemented. Mite can provide real Moose::Meta::Class objects. This obviously requires Moose, which is loaded on demand when you call $class->meta. This allows Moose to extend Mite classes, etc.

@schwern
Copy link
Contributor Author

schwern commented Dec 7, 2022

@tobyink If you have your own, I'm going to archive this repository.

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

No branches or pull requests

2 participants