diff -r af82888ceb72 -r 1f5aa87f6170 Context.st --- a/Context.st Fri Mar 25 06:29:08 2016 +0000 +++ b/Context.st Sat Mar 26 07:56:10 2016 +0000 @@ -756,7 +756,7 @@ searchClass "this is the class where the method-lookup started; - for normal sends, it is nil (or sometimes the receivers class). + for normal sends, it is nil (or sometimes the receiver's class). For supersends, its the superclass of the one, in which the caller was defined." @@ -1216,19 +1216,19 @@ resume:value "resume the receiver - as if it got 'value' from whatever - it called. This continues execution in the receivers method + it called. This continues execution in the receiver's method after the point where it did its last send. If the context has already returned - report an error. NOTICE: - NO unwind actions are performed (see Context>>unwind:). + NO unwind actions are performed (see Context>>unwind:). LIMITATION: - currently a context can only be resumed by - the owning process - not from outside. - Also, the compiler has an option (+optcontext) to create - non-resumable contexts (which are faster). - If such a context is restarted, a runtime error is raised." + currently a context can only be resumed by + the owning process - not from outside. + Also, the compiler has an option (+optcontext) to create + non-resumable contexts (which are faster). + If such a context is restarted, a runtime error is raised." |theContext| @@ -1246,43 +1246,43 @@ theContext = __thisContext; while (theContext != nil) { - sndr = __ContextInstPtr(theContext)->c_sender; - if (sndr == self) break; - theContext = sndr; + sndr = __ContextInstPtr(theContext)->c_sender; + if (sndr == self) break; + theContext = sndr; } if (theContext != nil) { - if (__isLazy(theContext)) { - __PATCHUPCONTEXT(theContext); - } + if (__isLazy(theContext)) { + __PATCHUPCONTEXT(theContext); + } } #endif %}. theContext isNil ifTrue:[ - " - tried to resume in context which is already dead - (i.e. the method/block has already executed a return) - " - ^ thisContext invalidReturnOrRestartError:#'resume:' with:value + " + tried to resume in context which is already dead + (i.e. the method/block has already executed a return) + " + ^ thisContext invalidReturnOrRestartError:#'resume:' with:value ]. ^ theContext return:value ! resumeIgnoringErrors:value "resume the receiver - as if it got 'value' from whatever - it called. This continues execution in the receivers method + it called. This continues execution in the receiver's method after the point where it did its last send. If the context has already returned - simply return. NOTICE: - NO unwind actions are performed (see Context>>unwind:). + NO unwind actions are performed (see Context>>unwind:). LIMITATION: - currently a context can only be resumed by - the owning process - not from outside. - Also, the compiler has an option (+optcontext) to create - non-resumable contexts (which are faster). - If such a context is restarted, a runtime error is raised." + currently a context can only be resumed by + the owning process - not from outside. + Also, the compiler has an option (+optcontext) to create + non-resumable contexts (which are faster). + If such a context is restarted, a runtime error is raised." " starting with this context, find the one below @@ -1298,16 +1298,16 @@ theContext = __thisContext; while (theContext != nil) { - sndr = __ContextInstPtr(theContext)->c_sender; - if (sndr == self) break; - theContext = sndr; + sndr = __ContextInstPtr(theContext)->c_sender; + if (sndr == self) break; + theContext = sndr; } if (theContext != nil) { - if (__ContextInstPtr(theContext)->c_sender) { - if (!((INT)(__ContextInstPtr(theContext)->c_flags) & __MASKSMALLINT(__CANNOT_RETURN))) { - __RESUMECONTEXT__(theContext, value, 0); - } - } + if (__ContextInstPtr(theContext)->c_sender) { + if (!((INT)(__ContextInstPtr(theContext)->c_flags) & __MASKSMALLINT(__CANNOT_RETURN))) { + __RESUMECONTEXT__(theContext, value, 0); + } + } } #endif %}. @@ -1317,19 +1317,19 @@ resumeOnErrorProceed:value "resume the receiver - as if it got 'value' from whatever - it called. This continues execution in the receivers method + it called. This continues execution in the receiver's method after the point where it did its last send. If the context has already returned - simply return. NOTICE: - NO unwind actions are performed (see Context>>unwind:). + NO unwind actions are performed (see Context>>unwind:). LIMITATION: - currently a context can only be resumed by - the owning process - not from outside. - Also, the compiler has an option (+optcontext) to create - non-resumable contexts (which are faster). - If such a context is restarted, a runtime error is raised." + currently a context can only be resumed by + the owning process - not from outside. + Also, the compiler has an option (+optcontext) to create + non-resumable contexts (which are faster). + If such a context is restarted, a runtime error is raised." " starting with this context, find the one below @@ -1345,14 +1345,14 @@ theContext = __thisContext; while (theContext != nil) { - sndr = __ContextInstPtr(theContext)->c_sender; - if (sndr == self) break; - theContext = sndr; + sndr = __ContextInstPtr(theContext)->c_sender; + if (sndr == self) break; + theContext = sndr; } if (theContext != nil) { - if (__ContextInstPtr(theContext)->c_sender) { - __RESUMECONTEXT__(theContext, value, 0); - } + if (__ContextInstPtr(theContext)->c_sender) { + __RESUMECONTEXT__(theContext, value, 0); + } } #endif %}.