Declare should be need only the type (no variable name)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
IceSoft
Addict
Addict
Posts: 1683
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

[quote="traumatic]...and what about the "less typing" argument when you're OK with writing
more comments that way? ;)[/quote]
/OFF TOPIC
I write one comment line behind the declaration of the variable...long variable names have to write allways I use it.
And the source code will not be easier read if the lines are longer as your sreen is.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

what about an IDE-plugin that automatically creates all Declares of all Procedures (and Prototypes?) of the current source by just one click?


as I already said, I always use copy/paste if I use any declares.
not the merest idea of crossing my mind that you could write different args in the declare.
and concerting less typing:
a descriptive comment-header for a Procedure contains fife to twenty lines,
with the name, short explanation, description of the arguments and return value.
if you put that header to the declaration, different argnames than in the procedure would be counterproductive.
oh... and have a nice day.
User avatar
charvista
Addict
Addict
Posts: 949
Joined: Tue Sep 23, 2008 11:38 pm
Location: Belgium

Post by charvista »

I was wondering if RunProgram() with the flag #PB_Program_Wait can be used exactly like an external Procedure(), bringing all the variables, and currently open files? This can be very useful.
Post Reply