[Gambas-user] Call modules with _call

Brian G brian at westwoodsvcs.com
Sat Jan 30 18:40:26 CET 2021


How much overhead does creating a module by name with a _call entry point create 
compared to a direct call in the current module file. 
example 
mmmail module contains this: 
public sub main() 
doThis() 
end 

doThis Module contains this: 
public sub _Call() 
print "hi" 
end 

as opposed to 
mmain module contains this: 

public sub main() 
doThis() 
end 

public sub doThis() 
print "hi" 
end 

I guess the question is how does gambas make the link at runtime 

Maybe Benoît could answer this 

Thank You 
Brian G 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210130/0b95dfab/attachment.htm>


More information about the User mailing list