Slither /

Filename Size Date modified Message
11 B
Add hgignore
517 B
Add class attributes and class attributes only, everything else can be simulated, these are well-defined and non-inherited
2.6 KB
Fix a bug inheriting false values, add documentation
3.6 KB
Allow access to result of previous applications of the same annotation to the same member
14.5 KB
Add anonymous classes
1.3 KB
Make __subclasses__ a weak table
12.7 KB
Add test for nil parent

Slither is a class library for lua that mimics python's classes, at the moment it has one big exception:

  • The class name is specified as a string

This means that:

class Cake (Food):
  pass

becomes

class "Cake" (Food) {
}

If you just want to use the library, slither.lua is the file you'll want, examples are present in examples.lua.

Documentation can be found at my documentation wiki

Enjoy!

(P.S. Do feel free to report any bugs you might encounter)