Enablefunction only for actual file

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Enablefunction only for actual file

Post by ts-soft »

I wish to change that EnableExplicit, EnableASM, Disable ...
only works in the actual file. This is better for Includes.

Or adding a testfunction like IsEnableExplicit and so on, to restore the
Value.

greetings
Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Maybe simply nesting them? That would make new keywords unnecessary, but maybe create other problems?

Code: Select all

EnableAsm
EnableAsm
DisableAsm
; Asm is still enabled here
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

I don't understand
I use for example:

Code: Select all

EnableExplicit

XIncludeFile "bla.pb"

; more code
Many user have at the begin of the include
EnableExplicit and at the end DisableExplicit, so my EnableExplicit
doesn't work anymore.
My wish should solve this problem

greetings
Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply