polystat / odin

Object Dependency Inspector
10 stars 2 forks source link

Support "this" (and more) as the name of the "self" argument #65

Closed nikololiahim closed 2 years ago

nikololiahim commented 2 years ago

This pull request allows the definition of methods and method calls in the following way:

  1. with self (the previous one)
    [self] > f
    self.g self > @
  2. with this:
    [this] > f
    this.g this > @
  3. with any other name:
    [slf] > f
    slf.g slf > @