[Gambas-user] Scripter - using Class to define a reference to a not class loaded by the main script

Brian G brian at westwoodsvcs.com
Sat Mar 13 18:46:26 CET 2021


Hi Ben, 

In Gambas you may define a reference to a class not loaded by main or project component list with: 

Class eval 

Which allows the compiler to process references to elements of that class. 

This of course does not work in scripter as it will interpret this as the definition of a new class beginning. 

Should a note be added to the CLASS page that this is not supported by the scripter? 
And indicate how this is used by a script. 

Or is there a way to identify this as not a script begin class definition through the highlighter. 

Right now this generates a syntax error missing end class in the script when it occurs. 


"Failure is the key to success; 
each mistake teaches us something" .. Morihei Ueshiba 
Brian G 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210313/f46d86f0/attachment.htm>


More information about the User mailing list