Project

Profile

Help

Bug #3423

Updated by Debbie Lockett over 4 years ago

Test override-v-015 demonstrates a problem with the binding of modes by name. 


 


 The initial mode is found by searching all mode components to find the first with a matching name. This is incorrect: it should always find a mode in the top-level package. Fixed this by using the same logic for finding the initial mode as we currently use for the initial function and the initial template. 


 


 This demonstrates another issue (which may be symptom-free): the index of modes (by name) held in context.fixed.modes is wrong in principle, because there can be several modes (in different packages) with the same name. 


 


 The same is true of the other indexes in context.fixed, such as context.fixed.globalVars and context.fixed.userFunctions. 
 

Back