Page 1 of 1

EnableExplicit behavior

Posted: Fri Dec 05, 2025 5:58 am
by miso
Is this normal behavior?
Enable explicit is not carried directly to the modules:

Code: Select all

EnableExplicit

DeclareModule test
  Declare testprocedure()
EndDeclareModule

Module test
  Procedure testprocedure()
    h = 100
  EndProcedure
EndModule
Edit: 6.30 beta 4 Win64

Re: EnableExplicit behavior

Posted: Fri Dec 05, 2025 6:53 am
by STARGĂ…TE
miso wrote: Fri Dec 05, 2025 5:58 am Is this normal behavior?
Yes, as it is written in the documentation:
https://www.purebasic.com/documentation ... odule.html
When the statements Define, EnableExplicit, EnableASM are used inside a module, they have no effect outside the respective module, and vice versa.

Re: EnableExplicit behavior

Posted: Fri Dec 05, 2025 7:04 am
by miso
Silly me, thanks for the answer.