Page 1 of 1

A few questions related to PB ide

Posted: Fri Jan 10, 2014 1:41 pm
by ostapas
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: Select all

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? :)

Re: A few questions related to PB ide

Posted: Fri Jan 10, 2014 5:17 pm
by skywalk
Good questions!
Try dropping some libs or resource files before starting PB IDE?
The Macro problem is partly due to multiline support.

Code: Select all

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:

Re: A few questions related to PB ide

Posted: Fri Jan 10, 2014 5:51 pm
by ostapas
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 :) )
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 (

Re: A few questions related to PB ide

Posted: Fri Jan 10, 2014 10:46 pm
by uwekel
+1
And for arrays as well.
It's not basic like, but similar to Python language and more readable.