It is currently Tue Mar 09, 2021 9:58 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: A few questions related to PB ide
PostPosted: Fri Jan 10, 2014 1:41 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Feb 18, 2010 11:10 pm
Posts: 192
What I find slightly annoying in PB ide - it seems there is no easy way to make linked lists and maps distinguishable from functions. Tried just simply prefix lists and maps with L_ or M_, e.g. L_mylist.s() but still don't like it. Searched the forum a bit and the easiest workaround (for me) seems to be using a macro for stitching square brackets to maps and lists:
Code:
Macro [

EndMacro

Macro ]

EndMacro

NewList Abc[]

But the macro doesn't seem to work, just getting a syntax error. So the question is, how to fix this macro? Or any other ideas, e.g. how to set different syntax highlighting for lists and maps? Another question - can't find a way to remove all 3D functions from autocomplete list, any ideas? :)


Top
 Profile  
Reply with quote  
 Post subject: Re: A few questions related to PB ide
PostPosted: Fri Jan 10, 2014 5:17 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3414
Location: Boston, MA
Good questions!
Try dropping some libs or resource files before starting PB IDE?
The Macro problem is partly due to multiline support.
Code:
Macro [  ( ;<-- PB sees a bad name and a missing right parenthesis.
EndMacro

A real problem later on if you were to replace all ()'s with []'s, is you cannot debug anywhere in those lines.
Macros are like invisible to the debugger. You can only step over them.
Compromise: You can distinguish between a Procedure and a list, by looking at the context help in the statusbar.
There will be no parameters for a list or array. :wink:

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: Re: A few questions related to PB ide
PostPosted: Fri Jan 10, 2014 5:51 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Feb 18, 2010 11:10 pm
Posts: 192
Quote:
Try dropping some libs or resource files before starting PB IDE?

Thanks, removing all 3d stuff from PureLibraries folder helps(but not really an elegant solution :) )
Quote:
Compromise: You can distinguish between a Procedure and a list, by looking at the context help in the statusbar.

Yes, but it still doesn't improve code readability (


Top
 Profile  
Reply with quote  
 Post subject: Re: A few questions related to PB ide
PostPosted: Fri Jan 10, 2014 10:46 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 03, 2011 5:54 pm
Posts: 736
Location: Oldenburg (Germany)
+1
And for arrays as well.
It's not basic like, but similar to Python language and more readable.

_________________
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 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