> With 9.0.1094, in the script that follows, attempting to read a > classMember through an instance fails; > > echomsg c.classMember > > should it?
No, an object does not provide a class member. > I suppose requiring the class name makes it most clear, but I recall > mention that classnames can get long. I suppose a getter could be added. How can you access the getter without referring to the class? > Can a class method (or should it be called class function?) be static? Nothing *is* static, the "static" keyword is used to change the meaning of items. > For example, a method accessed like > > MyClass.SomeStaticFunction() > > > Amusingly, I added a getter for the classMember; I guess accessing a static > member from inside the class definition is not handled yet. Different > errors depending on how it's accessed by the instance method Lots of things are not implemented yet... -- Time flies like an arrow. Fruit flies like a banana. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20221225210732.5C2411C0AA3%40moolenaar.net.
