optional file parameter

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

optional file parameter

Post by blueznl »

currently, i always have to use usefile()

i would like to have an additonal option for all those read/write commands, to keep it more in line with regular basics, such as...

readstring(#1)

if possible as the first parameter, and to avoid rewrites, preceded by a hash sign, so syntax would be something like:

readwhatever( [#fileid , ] parameter1, parameter2 )

just to make it more basic and remove countless usefile's


and, to top it off, my current wish list in all it's glory...

THE IN YOUR FACE GLARING STUFF...

- gimme not
- gimme fixed length strings
- gimme multiple case conditens with select case endselect
- gimme double ints and double floats
- gimme fileexist

- standardize or expand all those command variants (usefile, usewindow, windowoutput(), spriteoutput() etc. that have inconsistent syntax or cause unneccesary additional statements)

THE VERY VERY VERY APPRECIATED...

- add '#nr' parameter to most file commands
- delete / insert elements in arrays
- swap variables / array elements
- defline to define style / thickness of drawn 2d graphics
- VAL on hex strings
- STR to accept floats, bytes etc. with specified nr. of decimals

THE HMMM NICE...

- depth parameters for CreateImage / LoadImage etc.
- bigger strings (actually, i would only need the gixed length strings to be larger, normal strings at 64k are good enough for me)
- thread safe strings
- commands to sync up multi threading

THE ICING ON THE CAKE (take your time )...

- collision in 3d
- better sound lib (eax, fade, etc.)
- proper documentation (there's always the board and the chat to ask, and you guys are great, so that's why this is on the bottom of my little list...)

well... how about those first two sections in 3.81 hmm?
( 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... )