[Gambas-user] about inherints and variable access in various levels

Jussi Lahtinen jussi.lahtinen at gmail.com
Fri Aug 17 20:57:20 CEST 2018


A is "better" for what it is worth, but this shouldn't be issue at all.

Jussi

On Fri, Aug 17, 2018 at 3:43 PM PICCORO McKAY Lenz <mckaygerhard at gmail.com>
wrote:

> in about inherits and variable accessing, in various levels
>
> which is faster and better (in terms of less cpu calculation and less
> memory consumption), when using inherits:
>
> a) using a public variable directly, ? (public var s strting as global var
> in a a class)
> b) or using read-only properties? (property read var as string in a class
> to a internal var)
>
> NOTE: takin in consideration that will be called from another class that
> again will be inherit!
>
> please dont ingnore my mail, there's no harm in the reading this time
> right!
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180817/0896c87a/attachment.html>


More information about the User mailing list