You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two key components to parsing and type inference on class methods: method storage/resolution and variable storage/resolution. This should be relatively straightforward if duplicative of the existing plumbing for instance methods/variables.
Compilation to handle class methods and class instance variables should probably target a separate struct type ClassFoo and is then embedded in struct type Foo with a field name of Self for simplicity.
Actual class/static variables should probably be package-level variables with a qualifying name, e.g. @@bar inside class Foo can compile to ClassVarFooBar.
The text was updated successfully, but these errors were encountered:
Two key components to parsing and type inference on class methods: method storage/resolution and variable storage/resolution. This should be relatively straightforward if duplicative of the existing plumbing for instance methods/variables.
Compilation to handle class methods and class instance variables should probably target a separate struct type
ClassFoo
and is then embedded in struct typeFoo
with a field name ofSelf
for simplicity.Actual class/static variables should probably be package-level variables with a qualifying name, e.g.
@@bar
insideclass Foo
can compile toClassVarFooBar
.The text was updated successfully, but these errors were encountered: