Static class methods
FascinatedBox opened this issue · comments
Like forward declarations (#337), this is another feature that I simply never got around to implementing. I'd like for the static
qualifier to come after a qualifier. With both this and #337 done, a fully dressed method might read as:
forward public static define ...
Static methods are methods that don't have access to 'self', making them unable to directly call class methods or access class properties. The C side already has access to static met'm hods (File.open
, for example), so it seems fair that native Lily code can use them as well.
Unlike forward declarations, I already have a fair amount of code for this already done. I'm simply waiting for 1.2's window to close before polishing it and pushing it.