I think I got a bug here. Consider this code snippet:
Code: Select all
EnableExplicit
DeclareModule c1
Define.i __c1 = 1
EndDeclareModule
Module c1
EndModule
DeclareModule c2
UseModule c1
Debug "__c1 is defined: " + Defined(__c1, #PB_Variable)
Debug "Inside DeclareModule c2: " + __c1
EndDeclareModule
Module c2
EndModule
Debug "Both lines should be 1"
Debug Defined(c1::__c1, #PB_Variable)
Debug Defined(c2::__c1, #PB_Variable)
; This should work
;Debug c2::__c1
If I am doing something completely wrong here and this is not a bug, please explain it to me and move it in the right forum.