[Implemented] '#PB_All' for all of the Free....() commands

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

[Implemented] '#PB_All' for all of the Free....() commands

Post by Lebostein »

Hi,

I wish a Parameter like #PB_All (=-1) for all Close...() and Free...() commands :

Code: Select all

CloseWindow(#PB_All) ;close all open windows
CloseFile(#PB_All)   ;close all open files
CloseLibrary(#PB_All);close all open DLL's
Close...()

FreeSound(#PB_All)   ;remove all Sounds
FreeSprite(#PB_All)  ;remove all Sprites
Free... ()
and so on.

The FreeMemory() command is already ready for this: '-1' removes all memory blocks.
Last edited by Lebostein on Tue Jul 04, 2006 8:14 am, edited 4 times in total.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

That would be nice
I like logic, hence I dislike humans but love computers.
THCM
Enthusiast
Enthusiast
Posts: 276
Joined: Fri Apr 25, 2003 5:06 pm
Location: Gummersbach - Germany
Contact:

Post by THCM »

Very good request!
The Human Code Machine / Masters' Design Group
SCRJ
User
User
Posts: 93
Joined: Sun Jan 15, 2006 1:36 pm

Post by SCRJ »

Yes, good idea :D
Post Reply