Automatic procedure-tracking

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Automatic procedure-tracking

Post by Hroudtwolf »

Hello Fred,

It would be realy nice, if the compiler would track the procedures of a code automaticly.
So we could use procedures how ever we want in the code without any predeclarations.

That is no criticism. Only a wish. ;-)


Best regards

Hroudtwolf
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

One-Pass-Compiling goes Multi-Pass-Compiling?! Ohh my god, compiling would be so slow then. My game needs more than 5 seconds to compile.
bye,
Daniel
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Back-patching?
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

Hey, that needs a simple tracking of procedures and no complete compiling.
Your code would compile 5.5 seconds ;-)
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

It could simply check when a procedure is made and then add a declare @ the top of the code.
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

Exactly. That should be doable !?
MLK
User
User
Posts: 57
Joined: Sat Jan 24, 2004 8:46 pm
Location: Germany

Post by MLK »

lets extend option explicit to declare/global! isn't that the solution?
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

...or write a plugin for the IDE which does the job for you... that shouldn't be hard to do...
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

I use such a plugin already. But plugins are not realy a solution.
This would be only a nice feature for the compiler.
Everything else is nonsense.
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

This issue was recently discussed here
Post Reply