> Just to remember static meaning in C/C++ :
> '' 
> A static variable inside a function keeps its value between invocations ''. 
> https://stackoverflow.com/questions/572547/what-does-static-mean-in-c/572550#572550

We don't have static variables inside a function.  Perhaps some day.
In a class you can use the class member variables in a function, thus
you could do:

        static someCount
        def SomeFunc()
          someCount += 1
          echo 'count is now' someCount

> In C++ static class purpose is helper class and don't need to be 
> instantiated.

There are no plans for that.

> Furthermore, direct access to static member can be easily 
> done as this :   MyHelper::myStaticMember
> 
> https://stackoverflow.com/questions/10442404/invoke-a-c-class-method-without-a-class-instance/10442432#10442432
> 
> Will it be same meaning  in vim9 class ? 
> I think it should. 

C++ has lots of features that we won't get in Vim9 script.  C++ is too
complicated and the syntax is hard to understand, it's not a good
example of a "nice" object oriented language.

-- 
DEAD PERSON:  I'm getting better!
CUSTOMER:     No, you're not -- you'll be stone dead in a moment.
MORTICIAN:    Oh, I can't take him like that -- it's against regulations.
                                  The Quest for the Holy Grail (Monty Python)

 /// 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/20221218215508.190081C09D3%40moolenaar.net.

Raspunde prin e-mail lui