[Gambas-user] JIT compiler debugging

Benoît Minisini g4mba5 at gmail.com
Tue Oct 9 01:41:29 CEST 2018

Le 09/10/2018 à 01:11, Jussi Lahtinen a écrit :
> I don't think this "PROPERTY MyProperty As String TO sVar" is unrelated 
> to the issue. I use public variables exactly as I would use properties, 
> but without need of setters & getters, where they really aren't needed.
> And this is the reason:
> First the code was this one line:
> Public y As New TestClass1
> Now this is the functionally equivalent code:
> Property y As TestClass1
> Private $y As New TestClass1
> Private Function y_Read() As TestClass1
>    Return $y
> End
> Private Sub y_Write(Value As TestClass1)
>    $y = Value
> End
> Things didn't get simpler, less bug prone, efficient, etc, only much 
> longer. You really don't see any use for the shorter option? Even as the 
> syntactic sugar?
> Jussi

A symbol can only be overriden with a symbol of the same kind in a child 

And if you use a symbol Y as a public variable in a class, then I don't 
see any reason why overriding it by another public variable would be useful.

I don't see any relation with having a syntax to quickly declare a 
property and the private variable it is associated with.

Benoît Minisini

More information about the User mailing list