some suggestions

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by mdkrsta.

- Editor: + should delete the current line (or is there any fast way to delete complete lines without marking them first?)

- Editor: How about folding/unfolding Procedures for a better readability?

> Procedure test()

Procedure test()
Print("Test")
test2()
EndProcedure

- Declaring procedures before using them is a strain. A second pass could also be used for optimization purposes. A compiler option could be introduced for this if Fred does not want to slow down his lightning fast compiler :)

- A new command to quickly initialize a whole array: ArrayFill a(),0

- Local variables are not shown in the debugger

- How do I print out floats? The following example results 2:

a.f = 1.536
Print(Str(a))

- Double precision floats for mathematical stuff

- A compiled program without the debugger option can still be stopped using +. This is useful but is performance not affected by this check?

Sorry if some of these topics were already discussed since I'm new to this forum.

Happy PBing!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> A compiled program without the debugger option can still be stopped
> using +.

So if I want to copy some text in my app, it exits? :)

Seriously, no app should be able to be exited like that. Only ALT+F4
should exit, and then only if done on a window. You don't want your
apps to become non-standard to the Windows OS... like AMOS was to the
Amiga.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
Originally posted by PB

Seriously, no app should be able to be exited like that
Console applications are usually terminated using Ctrl-C. Even the processing of batch files is terminated in that way.

As for the original requests:
- Local variables are not shown in the debugger
I'm sure Fred is aware of this since he wrote the debugger :)
I'm also sure that people have asked for this to be changed.
- How do I print out floats? The following example results 2:

a.f = 1.536
Print(Str(a))
Print(StrF(a))

It is in the manual, the Str() command descriptions even has a link to StrF()!
- Double precision floats for mathematical stuff
This has been mentioned so many times it is unfunny. Fred is working on doubles right now.
Sorry if some of these topics were already discussed since I'm new to this forum.
There is a search facility.


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + all updates, PB3.51, Ed3.53)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Console applications are usually terminated using Ctrl-C.
> Even the processing of batch files is terminated in that way.

Yes... I guess I should have said that I meant Win32 apps.

As for console apps: Is the CTRL+C exit thing something that
the app itself checks for (like a Win32 app checking for
#WM_CLOSE), or is it something that Windows detects and
forces on the console app?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by DemonHell.
Originally posted by tinman
This has been mentioned so many times it is unfunny. Fred is working on doubles right now.
Don`t you mean he`s drinking doubles right now :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
Originally posted by PB

> Console applications are usually terminated using Ctrl-C.
> Even the processing of batch files is terminated in that way.

Yes... I guess I should have said that I meant Win32 apps.
:)
As for console apps: Is the CTRL+C exit thing something that
the app itself checks for (like a Win32 app checking for
#WM_CLOSE), or is it something that Windows detects and
forces on the console app?
I think the system forces the close, as this code does not check any kind of CTRL C but still quits if you press it. (I guess PB could have something built in which does the check for you?)

Code: Select all

If OpenConsole()
    For i=0 To 100000
        PrintN("Hell, world")
    Next
    CloseConsole()
EndIf
End
@DemonHell: :D


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + all updates, PB3.51, Ed3.53)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by geoff.

mdkrsta,

I agree with all of your suggestions.
Post Reply