> > I don't think it's a good idea to access static class function from > > an object instance of that class. Also, I would not name that > > function with "Member" if it is a static function, because member > > implies that it is a member method of an object instance. I think > > that could lead to confusion for someone else trying to read your > > code. > > The difference between a function and a method is important - with regard > to this topic of classes vs objects of the class. According to Bram's > preliminary doco. Yes, class "method" can be declared static. But then, I > think that makes it a static class "function", and not a class "method".
That depends on how you define this. A method usually implicitily gets an extra argument or is aware of its context. It does not necessarily alwayw need to be an object. > Bram, I think that the doco here is referring to a class "function", not a > class "method". It might be worth distinguishing between method and > function in the doco? If that makes it easier to understand. -- TALL KNIGHT: Firstly. You must get us another shrubbery! OTHER KNIGHTS: More shrubberies! More shrubberies for the ex-Knights of Ni! ARTHUR: Not another shrubbery - "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- b...@moolenaar.net -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20221226115913.3CF831C0AA3%40moolenaar.net.