[Gambas-user] Scripter gbs3 Change

Brian G brian at westwoodsvcs.com
Sun Jan 31 17:46:16 CET 2021


This will only effect script that use public variables and don't have a main() defined, 

If you want to post the scripts or attach to email, we can have a look before i do anything 

Thank You 
Brian G 


From: "Rolf-Werner Eilert" <rwe-sse at osnanet.de> 
To: "Gambas mailing list" <user at lists.gambas-basic.org> 
Sent: Sunday, January 31, 2021 2:37:44 PM 
Subject: Re: [Gambas-user] Scripter gbs3 Change 



What about existing scripts when I update Gambas? 

I've got couple of scripts which are started by cronjobs and/or users, will I have to work them all over, or will they continue to run? Would be a whole lot of work otherwise. 


Regards 
Rolf 
Am 31.01.21 um 09:34 schrieb Brian G: 



In Order to correctly process Public variables in a script it is now required to include a 
Public Sub main(). 
In your script. 

Scripter will now throw an error if you define public variables without also declaring a main(). 

Let me know if there are any objections to this change. It very much simplifies Scripter. 

Thank You 
Brian G 

----[ [ http://gambaswiki.org/wiki/doc/netiquette | http://gambaswiki.org/wiki/doc/netiquette ] ]---- 




----[ http://gambaswiki.org/wiki/doc/netiquette ]---- 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210131/244dcddd/attachment.htm>


More information about the User mailing list