It is currently Wed Aug 05, 2020 11:55 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: IDE: Display the return type of a procedure in status line
PostPosted: Sun Apr 19, 2020 2:31 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 560
Location: Near Hamburg
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 5.72 x64, OS: Windows 7 Pro x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age: 52y
"Happiness is a pet." | "Never run a changing system!"


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE: Display the return type of a procedure in status li
PostPosted: Sun Apr 19, 2020 5:15 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3308
Location: Boston, MA
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


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE: Display the return type of a procedure in status li
PostPosted: Sun Apr 19, 2020 5:25 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 742
Location: Linz, Austria
+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


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE: Display the return type of a procedure in status li
PostPosted: Mon Apr 20, 2020 5:16 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 560
Location: Near Hamburg
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 5.72 x64, OS: Windows 7 Pro x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age: 52y
"Happiness is a pet." | "Never run a changing system!"


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE: Display the return type of a procedure in status li
PostPosted: Mon Apr 20, 2020 6:00 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 742
Location: Linz, Austria
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


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE: Display the return type of a procedure in status li
PostPosted: Tue Apr 21, 2020 11:47 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Dec 23, 2003 3:54 am
Posts: 1839
+1 I like this idea

_________________
On GitHub: PB Includes - IDE Tools - Color Themes - IDE Branches - TabBarGadget Mods


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE: Display the return type of a procedure in status li
PostPosted: Wed Apr 29, 2020 3:21 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Oct 06, 2006 4:41 am
Posts: 717
Location: Canada
+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.


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE: Display the return type of a procedure in status li
PostPosted: Sun May 24, 2020 10:42 pm 
Offline
Enthusiast
Enthusiast

Joined: Wed Aug 24, 2005 12:11 pm
Posts: 125
Location: Italia
+1

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE: Display the return type of a procedure in status li
PostPosted: Sun Jun 21, 2020 5:18 am 
Offline
User
User

Joined: Sun Feb 09, 2020 4:56 pm
Posts: 36
+1


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE: Display the return type of a procedure in status li
PostPosted: Sun Jun 21, 2020 10:31 am 
Offline
Addict
Addict
User avatar

Joined: Tue Oct 09, 2007 2:15 am
Posts: 1130
And to enhanced this request, the description was nice.

I mean like tailbite does it long time ago :

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

The IDE shows : Foo(p1.i) - Description Text


+1

_________________
PureBasic 5.72 LTS (Windows x86/x64) | Windows10 Pro x64 | Z370 Extreme4 | i7 8770k | 32GB RAM | iChill GeForce RTX 2080 Super | HAF XF Evo​​
English is not my native language... (I often use DeepL to translate my texts.)


Top
 Profile  
Reply with quote  
 Post subject: Re: IDE: Display the return type of a procedure in status li
PostPosted: Sun Jun 21, 2020 3:13 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6254
Location: Wales, UK
+1

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

Code:
iThisProcedureReturnsInt()
sThisProcedureReturnsString()

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye