[Gambas-user] JIT compiler debugging

Jussi Lahtinen jussi.lahtinen at gmail.com
Tue Oct 9 01:11:40 CEST 2018


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



On Mon, Oct 8, 2018 at 5:45 PM Benoît Minisini <g4mba5 at gmail.com> wrote:

> Le 03/10/2018 à 14:25, Jussi Lahtinen a écrit :
> > There is the "null object" error, which happens only when JIT is
> > enabled. See the attachment.
> >
> > Jussi
> >
>
> This should be fixed in the last commit.
>
> --
> Benoît Minisini
>
> ----[ 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/20181009/09dcc01b/attachment-0001.html>


More information about the User mailing list