Code: Select all
CompilerIf #PB_Compiler_EnableExplicit = #False
EnableExplicit
#TemporaryEnableExplicit = #True
CompilerEndIf
;... Code ...
CompilerIf #TemporaryEnableExplicit
DisableExplicit
CompilerEndIf
Code: Select all
CompilerIf #PB_Compiler_EnableExplicit = #False
EnableExplicit
#TemporaryEnableExplicit = #True
CompilerEndIf
;... Code ...
CompilerIf #TemporaryEnableExplicit
DisableExplicit
CompilerEndIf
Nothing unexpected about it I'm afraid; I always start my utilities with EnableExplicit and then finish the code with a DisableExplicit and fill the space between them with as many bugs as I can find!It will certainly resolve the problem of third-party code (such as srod's) that unexpectedly contains Enable/DisableExplicit lines.
but the problem is that it disrupts code that has set this mode.not to disrupt someone else's code which may not have set this mode
Code: Select all
EnableExplicit [#PB_Default]
DisableExplicit [#PB_Default]
Code: Select all
EnableExplicit #PB_Default
thanks, so no more many work on update-dayssrod wrote:I shall remove them from my utilities then prior to any future updates.
Code: Select all
EnableExplicit
XIncludeFile "cool_tool.pbi"
...
Code: Select all
XIncludeFile "cool_tool.pbi"
EnableExplicit
...
my thoughts exactly!Little John wrote:However, then I realized that doing it the other way round works fine.![]()
Code: Select all
XIncludeFile "cool_tool.pbi" EnableExplicit ...
But sometimes requires my include some constants, structures or variablesLittle John wrote:Code: Select all
XIncludeFile "cool_tool.pbi" EnableExplicit ...