Apache OpenOffice (AOO) Bugzilla – Issue 23758
Basic : impossible to call subroutine with same module name
Last modified: 2005-01-25 15:45:20 UTC
Bug with Basic It is impossible to call from another module a subroutine having the same name as the module it belongs. See a simple example in next attachment.
Created attachment 12046 [details] Simple example demonstrating the bug
StarBASIC runtime, not API
This issue is being reported as two issues on the newsgroup (udk-issues and api-issues). Please remove the inappropriate issue as double reporting simply makes a mess of the newsgroup.
The reason for this: The modules are accessible as objects using their names. So subs in other modules can be called explicitely: ' Module1 Sub main Module2.Test End Sub ' Module2 Sub Test print "Test" End sub So of course it's not possible to use the name of Modules as variable names. This cannot be changed any more to stay compatible with existing Basic pro- grams that might use this feature.
-> Closed