Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



Prevent the compiler giving 'Unassigned Variable' warnings for the parameters passed with DEFFUN() 

Previous Release Behavior

The DEFFUN() statement can include any number of parameters on the statement, for example 

    DEFFUN MyFunction(Name , Address , DOB)

In the above example, Name , Address and DOB are not used when generating code. They exist in the source code purely to help the programmer remember what the parameters are and the name to give clues as to their use. However, another part of the compiler will add 'Name' , 'Address' and 'DOB' to the variable table. This means that 3 extra variables are created that are never used. This isn't the main problem. The main problem is that you get 'Unassigned Variables' messages, as in 

fbcentos-~/tmp15: cat test3.b
        DEFFUN MyFunction(Name , Address , DOB)
fbcentos-~/tmp15: BASIC . test3.b
Warning: Variable DOB is never assigned!
Warning: Variable Name is never assigned!
Warning: Variable Address is never assigned!
Source file test3.b compiled successfully

Current Release Behavior

The warning messages are not displayed. 

Was this article helpful?