IDE: Display the return type of a procedure in status line

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 664
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

IDE: Display the return type of a procedure in status line

Post by Kurzer »

Hello Fred,

I would find it very helpful if the return type of a procedure would be displayed in the status line.
Currently, only the procedure name and the procedure parameters are displayed there, but not the return type, if the procedure has one.

Kind Greetings
Kurzer
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2023: 56y
"Happiness is a pet." | "Never run a changing system!"
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE: Display the return type of a procedure in status li

Post by skywalk »

Yes, requested long ago. Open IDE now has a chance. :idea:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
chi
Addict
Addict
Posts: 1028
Joined: Sat May 05, 2007 5:31 pm
Location: Linz, Austria

Re: IDE: Display the return type of a procedure in status li

Post by chi »

+1
skywalk wrote:Yes, requested long ago. Open IDE now has a chance.
Problem is, those texts are inside each pb libraries... So only Fred could change it. You can check by opening a pb lib (eg PureBasic(x64)\PureLibraries\Process) with a text editor.

edit: you could of course edit the libs and add all returns yourself ;)
Et cetera is my worst enemy
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 664
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: IDE: Display the return type of a procedure in status li

Post by Kurzer »

chi, if you mean PureBasic's own commands, you're right.
But I meant the self-written procedures that are in the source code.

For example.
Procedure.s GetCustomerName(CustomerID.i)

The procedure could be displayed in the status line as "GetCustomerName.s"
(Of course without the color highlighting, this only served to illustrate what is important to me)
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2023: 56y
"Happiness is a pet." | "Never run a changing system!"
User avatar
chi
Addict
Addict
Posts: 1028
Joined: Sat May 05, 2007 5:31 pm
Location: Linz, Austria

Re: IDE: Display the return type of a procedure in status li

Post by chi »

kurzer wrote:chi, if you mean PureBasic's own commands, you're right.
But I meant the self-written procedures that are in the source code.
Oh, I see... Yes, that would be pretty nice too :)
Et cetera is my worst enemy
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: IDE: Display the return type of a procedure in status li

Post by kenmo »

+1 I like this idea
User avatar
Blue
Addict
Addict
Posts: 864
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Re: IDE: Display the return type of a procedure in status li

Post by Blue »

+1

Great suggestion, kurzer
Another simple idea that would be greatly useful.
"That's not a bug..." said the programmer. "it's a feature! "
"Oh! I see..." replied the blind man.
le_magn
Enthusiast
Enthusiast
Posts: 133
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia
Contact:

Re: IDE: Display the return type of a procedure in status li

Post by le_magn »

+1
Image
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: IDE: Display the return type of a procedure in status li

Post by Bisonte »

And to enhanced this request, the description was nice.

I mean like tailbite does it long time ago :

Code: Select all

Procedure.i Foo(p1.i) ;- Description Text
EndProcedure

The IDE shows : Foo(p1.i) - Description Text
+1
PureBasic 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: IDE: Display the return type of a procedure in status li

Post by IdeasVacuum »

+1

It's easy to diy - just prefix or postfix a letter to the procedure name accordingly

Code: Select all

iThisProcedureReturnsInt()
sThisProcedureReturnsString()
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply