[Implemented] Defined(#CONST, ...) not Defined(CONST, ...)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

[Implemented] Defined(#CONST, ...) not Defined(CONST, ...)

Post by remi_meier »

As it is, the '#' belongs to the name of the constant and I even dont know
how to use defined() with strings like s$ (I think it's a bug)!

Code: Select all

s.s = "hallo"
t$ = "hallo"
Debug Defined(s, #PB_Variable)
Debug Defined(t, #PB_Variable)
Debug Defined(t$, #PB_Variable)
Cannot see if t$ is defined!

But perhaps I just don't see the reason for not using '#', then I would be
glad if somebody could tell me :wink:
Athlon64 3700+, 1024MB Ram, Radeon X1600