Wishlist for PureBasic v4.xx - Overview
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
V4.00-Observations of a newcomer
Just a list of some beta observations (and wishes to think about changing some things, maybe;)...
Directory structure
----------------------
(I'd like to have everything compact;)
- why Tools.prefs and Template.prefs could not be included in the PureBasic.prefs? Wouldn't it be eniugh to have a [Tools] and a [Template] section inside the master file?
- the "Debugger" directory just includes one file, I would move it to the "Compilers" directory
- there are two WindowsUnicode.res files, is it possible to eliminate the "Residents\Unicode" directory?
- optional: I would expect, that everyone kills non-spoken language files from the "Catalogs" directory, so it will be nearly empty - maybe it can me "merged" with the "Help" directory content to a single directory...
- and: what about changing the subdirectories in "Examples"? I would put one "Archive" directory inside, which contains all sources not have been updated to PB4 syntax. All working examples should be in divided in categories, like "Graphics" (Drawing, Sprite, 3D), "In&Out" (File, Keyboard, etc.), "Maths", "Network", "Windows" (API, Dialog, DLL, Font, Windows, etc.), "Tools", "Tutorial" and "Extras", where all other stuff, like OnError and Advanced Things could be placed...
this would help to understand PB4 faster, especially for newcomers like me: I do not want to learn V3.94 now and some weeks later V4 again!
Editor (IDE):
--------------
- please try to implement an auto ident mode, some "cool" editors even show dotted lines within If/Endif constructs
- as I work on a small notebook (800x600), there's not much space for the tools, like the "Procedure browser". So I use the auto hide function, which works fine. But why there is no easy possibility to access to these tools by keyboard? I can activate the tool by ALt-something, but the cursor remains in the source window...
- what about a possibility to define a second shortcut for some functions? I would like to use alt-q for folding, but would like to keep F4 also for "compatibility"
- other stuff, i liked on the gfa-editor, like...
- i think, the auto complete function is not very efficient (pops up slowly), a dictionary which translates some often used words automatically, when a space is pressed after a dictionary word (proc->Procedure, procr->ProcedureReturn, etc.), would be an alternative (otherwise I have to do this with Autohotkey;)
- the "External Help" entry in the popu up menu is not justified correctly
- I'd like to be able to create a "own" color setting which can be named (in GFA-Style;)
- maybe it's here, I didn't find it: a shortcut to delete a line?! (nice would also be a shortcut which cuts the text from the cursor position to the end of the line into the clipboard)
Maths:
--------
Good to know, ".d" has standard quality (compared to GFA, etc.), but was is ".f"? For what reason should this type be used? (just a rhetoric question)
a.d=1.0000001
For i=1 To 26
a=a*a
Next i
Debug(a-821)
Conditions:
-------------
Once again, something I liked - GFA-Basic allowed to use conditions within expressions, like this...
FUNCTION onoff$(n&)
// Print "Value is set to"@onoff$(1) prints out "Value is set to on"
RETURN MID$(" off on",-PRED(SHL(n& <> 0,2)),4)
ENDFUNC
Loops:
--------
PureBasic seems to do the standard program (while/wend, repeat/until), I miss the genius do/loop thing from GFA-Basic. Why? Have a look:
error=0
i=0
:
do while i<9
i++
:
if blabla then error=9
:
loop until error
So, that's all for the moment,
Michael
Directory structure
----------------------
(I'd like to have everything compact;)
- why Tools.prefs and Template.prefs could not be included in the PureBasic.prefs? Wouldn't it be eniugh to have a [Tools] and a [Template] section inside the master file?
- the "Debugger" directory just includes one file, I would move it to the "Compilers" directory
- there are two WindowsUnicode.res files, is it possible to eliminate the "Residents\Unicode" directory?
- optional: I would expect, that everyone kills non-spoken language files from the "Catalogs" directory, so it will be nearly empty - maybe it can me "merged" with the "Help" directory content to a single directory...
- and: what about changing the subdirectories in "Examples"? I would put one "Archive" directory inside, which contains all sources not have been updated to PB4 syntax. All working examples should be in divided in categories, like "Graphics" (Drawing, Sprite, 3D), "In&Out" (File, Keyboard, etc.), "Maths", "Network", "Windows" (API, Dialog, DLL, Font, Windows, etc.), "Tools", "Tutorial" and "Extras", where all other stuff, like OnError and Advanced Things could be placed...
this would help to understand PB4 faster, especially for newcomers like me: I do not want to learn V3.94 now and some weeks later V4 again!
Editor (IDE):
--------------
- please try to implement an auto ident mode, some "cool" editors even show dotted lines within If/Endif constructs
- as I work on a small notebook (800x600), there's not much space for the tools, like the "Procedure browser". So I use the auto hide function, which works fine. But why there is no easy possibility to access to these tools by keyboard? I can activate the tool by ALt-something, but the cursor remains in the source window...
- what about a possibility to define a second shortcut for some functions? I would like to use alt-q for folding, but would like to keep F4 also for "compatibility"
- other stuff, i liked on the gfa-editor, like...
- i think, the auto complete function is not very efficient (pops up slowly), a dictionary which translates some often used words automatically, when a space is pressed after a dictionary word (proc->Procedure, procr->ProcedureReturn, etc.), would be an alternative (otherwise I have to do this with Autohotkey;)
- the "External Help" entry in the popu up menu is not justified correctly
- I'd like to be able to create a "own" color setting which can be named (in GFA-Style;)
- maybe it's here, I didn't find it: a shortcut to delete a line?! (nice would also be a shortcut which cuts the text from the cursor position to the end of the line into the clipboard)
Maths:
--------
Good to know, ".d" has standard quality (compared to GFA, etc.), but was is ".f"? For what reason should this type be used? (just a rhetoric question)
a.d=1.0000001
For i=1 To 26
a=a*a
Next i
Debug(a-821)
Conditions:
-------------
Once again, something I liked - GFA-Basic allowed to use conditions within expressions, like this...
FUNCTION onoff$(n&)
// Print "Value is set to"@onoff$(1) prints out "Value is set to on"
RETURN MID$(" off on",-PRED(SHL(n& <> 0,2)),4)
ENDFUNC
Loops:
--------
PureBasic seems to do the standard program (while/wend, repeat/until), I miss the genius do/loop thing from GFA-Basic. Why? Have a look:
error=0
i=0
:
do while i<9
i++
:
if blabla then error=9
:
loop until error
So, that's all for the moment,
Michael
gfa:
do while ... loop
do ... loop until
pure:
while ... wend
repeat ... until
do while ... loop
do ... loop until
pure:
while ... wend
repeat ... until
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
-
- Enthusiast
- Posts: 149
- Joined: Wed Apr 27, 2005 11:50 am
- Location: Adelaide, Australia
- Contact:
An updated help file as I'm not a real programmer - I employ an infinite number of monkeys, and I think maybe a couple of them can read. 

Last edited by Hatonastick on Sat Feb 11, 2006 4:13 pm, edited 1 time in total.
Please forgive my poor English, I'm an Australian.
.f is a float. A double is double (2x) floats afaik.Good to know, ".d" has standard quality (compared to GFA, etc.), but was is ".f"? For what reason should this type be used? (just a rhetoric question)
Now what if you do not NEED to have so many decimals? Then you use a smaller variable.
Thats also why you have words and bytes.. Or at least one of the reasons.
Code: Select all
Debug SizeOf(float) ;<- FLOAT.
Debug SizeOf(double) ;<- DOUBLE.
Debug SizeOf(word) ;<- WORD.
Debug SizeOf(long) ;<- LONG.
nco you're right, but there is nothing wrong with... learning
from another language (well, borrowing, stealing, copying, you decide on the wording
)


( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact: