Adding default nameless namespace for mainscope

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

Adding default nameless namespace for mainscope

Post by ts-soft »

see here: http://www.purebasic.fr/english/viewtop ... 18#p416618

With this, we can use all constants, vars and so on, only with adding :: in front in modules and we
can, after UseModule, solve all nameconflicts by using :: bevor calling anything from mainscope.

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
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: Adding default nameless namespace for mainscope

Post by luis »

I would like that too, practical case where I'm missing this: http://www.purebasic.fr/english/viewtop ... 99#p416699
"Have you tried turning it off and on again ?"
A little PureBasic review
Little John
Addict
Addict
Posts: 4780
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Adding default nameless namespace for mainscope

Post by Little John »

+1
Post Reply