REBOL3 tracker
  0.9.12 beta
Ticket #0002229 User: anonymous

Project:

Previous Next
rss
TypeBug Statusreviewed Date27-Jul-2015 15:41
Versionr3 master CategoryEvaluation Submitted byfork
PlatformAll Severityminor Priorityhigh

Summary Empty blocks in loops do not allow Ctrl-C to interrupt
Description For example, if you use a block with just one item in it, you will be able to Ctrl-C out of this forever loop:

>> forever [1020] ;... then, hit Ctrl-C
[escape]>>

But if you do not put anything in the block you won't get a response to the interrupt request, it will just keep requesting...

>> forever [] ;... then, hit Ctrl-C...Ctrl-C...Ctrl-C
[escape][escape][escape] ; no command prompt... :-(

The reason is that empty blocks are "optimized" and bypass calling Do_Next. Yet in doing so they also bypass the Do_Signals call that is made every N evaluations.
Example code

			

Assigned ton/a Fixed in- Last Update28-Jul-2015 06:43


Comments

Date User Field Action Change
28-Jul-2015 06:43 abolka Description Modified -
28-Jul-2015 06:43 abolka Status Modified submitted => reviewed
27-Jul-2015 15:41 Fork Ticket Added -