It's a shame that such feature is not already build-into PB! The thing is that it does not have to be line separator at all. JavaScript allows multi-line commands without jumping through any hoops. The processor simply realizes that there is more to come and checks the next line... returning an error, if there isn't.
Thanks for the tool.
The PB folks should send you a present and put something like it into their interface by default (and without the need for "$LPP" at the beginning of the code
). Adding comments to procedure parameter is one place where it is hard to live without a multi-line command option, add also the fact that if you inherit structures from one object to another, PB still requires to provide the whole chain to be able to access the final element.
Code: Select all
Structure BLAH
field1.i
field2.f
EndStructure
Structure BLUB
ID
Blahs.BLAH
EndStructure
Structure BLUBBER
ID.i
Blubs.BLUB
Name.s
EndStructure
Global Dim Blubbers.BLUBBER(10)
Global Dim MoreBlubbers.BLUBBER(10)
;required
MoreBlubbers(a)\ID = Blubbers(a)\ID
;...
MoreBlubbers(a)\Blubs\ID = Blubbers(a)\Blubs\ID
;...
MoreBlubbers(a)\Blubs\Blahs\field1 = Blubbers(a)\Blubs\Blahs\field1
;...
;not possible
MoreBlubbers(a) = Blubbers(a)
;... not to mention
MyProc(Blubbers)
Procedure MyProc(WorkBlubbers) ;= like "ByRef" in VB to pass along whole object for processing
...
EndProcedure
All those things keep code shorter, but that's also unavailable, so touting that a multi-line feature is not needed for "clean" PB code is
hypocritical.
The commenting on individual Procedure paramters still remains though, regardless how "clean" your code is. Nothing beats "
THIS ; <== IS FOR THAT" when it comes to readability!
Thanks again for the Editor add-on!