Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hostilefork
Copy link
Member

Event list expansion was added by Atronix to deal with bug #1422.
Original expansion set EVENT_LIMIT to 0xFFFF REB_EVENT values (64k).
This was much larger than the hard limit of 128 set by original
open-source Rebol. But adding SET_SIGNAL(SIG_EVENT_PORT) in
Append_Event() corrected the bug and allowed the limit to be
lowered. Still the chunking/expansion mechanic is retained.

Event list expansion was added by Atronix to deal with bug #1422.
Original expansion set EVENT_LIMIT to 0xFFFF REB_EVENT values (64k).
This was much larger than the hard limit of 128 set by original
open-source Rebol.  But adding `SET_SIGNAL(SIG_EVENT_PORT)` in
`Append_Event()` corrected the bug and allowed the limit to be
lowered.  Still the chunking/expansion mechanic is retained.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will cause unexpected recursions. Think about a button with an action function. When the button is clicked, the action function could call Do_Singals and then Awake_System, which handles the pending events. If there are some pending clicks on this button, the same action function will then be called and cause recursive calls. This is similar to the recursion I wanted to avoid with wait/only.

Basically, we'd like the Awake_System is only be called from WAIT, so that the user knows there is only one place that event handling could happen.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm... I see. But perhaps should it be not just WAIT, but also at sort of the "top level loop" (e.g. if you get back to the REPL)?

@hostilefork hostilefork force-pushed the master branch 2 times, most recently from e5d8945 to 5a309e2 Compare December 9, 2015 12:14
@hostilefork hostilefork force-pushed the master branch 3 times, most recently from 132f7e8 to 4872244 Compare December 30, 2015 04:11
@hostilefork hostilefork force-pushed the master branch 4 times, most recently from f8a260d to 8da92d3 Compare January 31, 2016 16:59
@hostilefork hostilefork force-pushed the master branch 4 times, most recently from 052dc8b to 3f9978e Compare March 4, 2016 07:38
@hostilefork hostilefork force-pushed the master branch 4 times, most recently from 80fd3a0 to 3b8a482 Compare March 13, 2016 04:25
@hostilefork
Copy link
Member Author

Closing because this apparently doesn't completely solve the problem, and because Ren-C is aiming to become agnostic to the event system used by the host. Hence this is not a priority concern.

@hostilefork hostilefork deleted the fix-1422 branch May 26, 2016 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants