Author |
Topic: Wish List (Read 1613 times) |
|
Alincon
Full Member
member is offline


Posts: 147
|
 |
Re: Wish List
« Reply #9 on: Jan 29th, 2015, 12:52am » |
|
I'd like like the LBB tool bar to have that icon on the LB tool bar that, when clicked, shows a list of the branch names, and then I can jump right to the one I want. I use this feature a lot.
Also I'd like LBB to automatically nullify the 'nomainwin command when the program is run in debug mode.
r.m.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: Wish List
« Reply #10 on: Jan 29th, 2015, 11:50am » |
|
on Jan 29th, 2015, 12:52am, Alincon wrote:| I'd like like the LBB tool bar to have that icon on the LB tool bar that, when clicked, shows a list of the branch names |
|
I agree it's a nice feature. My concern would be whether I could generate the list of branch/function/sub names in a sensible time-frame if the program is really large (I know of programs in excess of 60,000 lines being compiled with LBB).
I know it's not entirely a substitute, but remember that in LBB you can right-click on a branch/function/sub name and then select Jump to from the displayed context menu; to return from where you came right-click and select Go back.
I would speculate that commonly when you want to jump to a particular branch/function/sub it's because you are currently looking at some code which references it (e.g. a GOTO or a CALL), so in that circumstance the right-click option does the job.
Quote:| Also I'd like LBB to automatically nullify the 'nomainwin command when the program is run in debug mode. |
|
I'll investigate the practicality of that.
Richard.
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: Wish List
« Reply #11 on: Jan 31st, 2015, 12:55pm » |
|
on Jan 29th, 2015, 12:52am, Alincon wrote:| Also I'd like LBB to automatically nullify the 'nomainwin command when the program is run in debug mode. |
|
I can confirm that this will be in the next release of LBB, due in March.
Richard.
|
|
Logged
|
|
|
|
bluatigro
Full Member
member is offline


Gender: 
Posts: 111
|
 |
Re: Wish List
« Reply #12 on: Feb 1st, 2015, 2:33pm » |
|
Code: Code:
call subname a( 13 ) , a( 14 ) , a( 15 )
end
sub subname byref x , byref y , byref z
end sub
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: Wish List
« Reply #13 on: Feb 1st, 2015, 3:23pm » |
|
on Feb 1st, 2015, 2:33pm, bluatigro wrote: Any other votes for this?
Quote: Code:call subname a( 13 ) , a( 14 ) , a( 15 )
end
sub subname byref x , byref y , byref z
end sub |
|
Good catch! That should definitely work (in LBB), the fact that it doesn't is a mistake on my part. I'll fix it in the next release. Thank you!
Richard.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: Wish List
« Reply #14 on: Feb 8th, 2015, 1:45pm » |
|
on Jan 27th, 2015, 5:55pm, Richard Russell wrote:| OK, I have added RESUME NEXT to my Work In Progress version. |
|
Sorry to mess you around, but I've taken it out again! I decided that with SEH being supported in the next release of LBB it didn't make much sense to support the outdated RESUME NEXT as well.
The SEH equivalent to the previous simple example is as follows, and it's much nicer (IMHO):
Code: CLS
FOR i = -5 TO 5
TRY
PRINT i, 1 / i
CATCH
PRINT Err$; " happened but we ignore and continue"
END TRY
NEXT
END And here is the SEH equivalent to the more complex example; no GOTOs, no labels, this is how modern code should be written!:
Code: CrLf$ = chr$(13);chr$(10)
'some ordinary code
Text1$ = Text1$ + "Hello" + CrLf$
'isolate dangerous code
Try
Call Reciprocal 1
Catch
Text1$ = Text1$ + "!!! Some error happened" + CrLf$
End Try
'some more ordinary code
Text1$ = Text1$ + "Hello again" + CrLf$
'second piece of dangerous code - this will break
Try
Call Reciprocal 0
Catch
Text1$ = Text1$ + "!!! Some error happened" + CrLf$
End Try
'last piece of ordinary code
Text1$ = Text1$ + "last Hello"
Print Text1$
End
Sub Reciprocal n
dummy = 1 / n
End Sub Richard.
|
|
|
|
|