[Gambas-user] Bug with JIT and external functions

Emil Lenngren emil.lenngren at ...626...
Sun Jun 17 02:23:44 CEST 2012


That has nothing to do with extern ;)
The code you are trying to execute is "Try oo = [TestClass1]".

As that code is always illegal, the jit throws an error directly at compile
time, before running the code. That should help people debugging code
because if there is an error in an uncommon code path, that error might
normally be hard to discover. If the jit compiler sees that error directly
upon compile time, you can easier correct the bug.

/Emil

2012/6/17 Jussi Lahtinen <jussi.lahtinen at ...626...>

> >From this (integer to integer):
> Dim iResult As Integer = mTest.DoTests()
>
> Type mismatch: wanted Standard type, got Class instead in FMain:9.
>
> Jussi
>
>
>
>
> On 17 June 2012 02:47, Emil Lenngren <emil.lenngren at ...626...> wrote:
>
> > Hi. What error do you get? The "extern" part seems to work fine for me...
> >
> > /Emil
> >
> > 2012/6/16 Jussi Lahtinen <jussi.lahtinen at ...626...>
> >
> > > See attachment.
> > > If you comment out "Fast" from mTest, all works perfectly.
> > >
> > > Gambas 3 rev 4837 @ Xubuntu 12.04 64bit
> > >
> > > Jussi
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Live Security Virtual Conference
> > > Exclusive live event will cover all the ways today's security and
> > > threat landscape has changed and how IT managers can respond.
> Discussions
> > > will include endpoint security, mobile security and the latest in
> malware
> > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > >
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> 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