EnableExplicit behavior

Just starting out? Need help? Post your questions and find answers here.
miso
Enthusiast
Enthusiast
Posts: 572
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

EnableExplicit behavior

Post 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
User avatar
STARGÅTE
Addict
Addict
Posts: 2267
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: EnableExplicit behavior

Post 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.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
miso
Enthusiast
Enthusiast
Posts: 572
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: EnableExplicit behavior

Post by miso »

Silly me, thanks for the answer.
Post Reply