Skip to content

Commit

Permalink
Refactor to remove nested method table in class
Browse files Browse the repository at this point in the history
  • Loading branch information
elct9620 committed Jul 24, 2024
1 parent 92cbe74 commit c630a5b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions class.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ var (
)

type methodTable map[Symbol]Method
type mt = methodTable

var _ RClass = &Class{}

Expand All @@ -27,8 +26,8 @@ type RClass interface {
type class struct {
Object
super RClass
mt
iv ivTable
mt methodTable
iv ivTable
}

type Class struct {
Expand Down

0 comments on commit c630a5b

Please sign in to comment.