[Gambas-user] static ? in variables

PICCORO McKAY Lenz mckaygerhard at ...626...
Thu Jun 15 22:07:11 CEST 2017


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 <mckaygerhard at ...626...>:

> 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/
> wiki/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 <taboege at ...626...>:
>
>> 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 at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>



More information about the User mailing list