tobias..now making a library in the ide, the class that not have the "create static" now not permits instanciate the class
i only put a variable static, rest of class not have create static Export Private dblocal As String = "file1.txt" Static Public status As Integer = 0 now the class "dbcontext" said cannot be instanciate, i do not have the CREATE PRIVATE declaration inside it! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-15 16:07 GMT-04:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>: > ok tobias, i reading and property translated to spanish.. thanks for your > help.. (umm i thnik was too compresed the info.. but in any case ...) > > http://gambaswiki.org/wiki/lang/createstatic?l=es > > please for spanish use revised and compelte if need.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-15 15:15 GMT-04:00 PICCORO McKAY Lenz <mckaygerh...@gmail.com>: > >> hi tobias, please , change you the now modified wiki page.. i changed >> maybe before u read it! >> >> and also change the spanish too, http://gambaswiki.org/wik >> i/lang/createstatic?l=es >> >> please change you or revised the actual and made right corrections.. i >> think u visit the wiki after i made the changes.. i must added parto of >> your explanation due the wiki has confuse info.. >> >> i will monitoring the wiki after you made some changes to also update the >> spanish part >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2017-06-15 15:02 GMT-04:00 Tobias Boege <tabo...@gmail.com>: >> >>> On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: >>> > hi tobias, *the documentation are totally wrong.. due the documentation >>> > makes a explicit citation to the concep in wikipedia*,that's why i ask >>> so >>> > many about it >>> > >>> > now i propose to change by myselft that documentation to a proper >>> paragraph >>> > that translators can understand without transliterate the meaning.. >>> > >>> > and in any case thanks to your explication now i can understand the >>> right >>> > usage.. >>> > >>> > with this specific problem i can point the importance of a >>> documentation, >>> > i'll practice some all of your said and then try to correct better the >>> wiki >>> > doc >>> > >>> >>> Well, I read the wiki page again after you pointed this out and, >>> technically >>> speaking, the wiki is correct: >>> >>> This feature allows you to implement the object-oriented programming >>> singleton pattern. >>> >>> Indeed CREATE STATIC allows you to implement the familiar singleton >>> pattern, >>> but CREATE STATIC *alone* does not suffice. To get the singleton you >>> have to >>> use >>> >>> CREATE STATIC >>> CREATE PRIVATE >>> >>> together (CREATE PRIVATE is linked on the CREATE STATIC page and it >>> disallows the creation of objects of a class, except for the automatic >>> instance, because the interpreter can and will bypass the CREATE PRIVATE >>> limit to fulfill the CREATE STATIC flag). >>> >>> Maybe this is all that's needed for the clarification. If you agree that >>> CREATE STATIC + CREATE PRIVATE = singleton pattern, then I can change >>> the wiki page, with slightly better English I believe. >>> >>> Regards, >>> Tobi >>> >>> -- >>> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >>> >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user