Hi,

I slightly remember this issue floating around here but I couldn't
(re)discover anything but an ancient thread[0] in which it's said that a
similar but not identic bug was fixed in rev#2578 which must be aeons
ago :-)

However, I tested the attached script with the latest gbs3 and it gives
error only with the particular 'evil comment' which has the unique property
to follow the last END statement in the source file. The error is:

ERROR: #24: No startup method

If you remove the comment (it suffices put it on the next line), everything
works.

[0] http://gambas.8142.n7.nabble.com/Gambas-scripter-td21635.html
#!/usr/bin/env gbs3

Public Sub Main()
        T()
End ' I'm harmless!

Public Sub T()
        Print 2^2
End ' I'm evil!

' Harmless comment
------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to