eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Continuation':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: Continuation


Inheritance:

   Object
   |
   +--Continuation

Package:
stx:libbasic
Category:
Kernel-Processes
Version:
rev: 1.17 date: 2019/03/07 17:23:11
user: stefan
file: Continuation.st directory: libbasic
module: stx stc-classLibrary: libbasic
Author:
Claus Gittinger

Description:


Initial attempt - Unfinished.
Continuations do not work yet - there is more support needed in the VM.

[Instance variables:]

    id                     <SmallInteger>   a unique continuation-id;
                                            Used to identify a corresponding
                                            data-structure in the VM.

    process                <Process>        the process which created this continuation.

[Class variables:]


Related information:

    Process
    Context
    Block

Class protocol:

instance creation
o  current
this is called current-continuation in scheme

usage example(s):

     self current

o  currentDo: aBlock
this is is called call/cc in scheme

o  new
(comment from inherited method)
return an instance of myself without indexed variables


Instance protocol:

invocation
o  argumentCount
VisualAge/ANSI compatibility

o  numArgs

o  value

o  value: v
self terminate: thisContext.

o  valueWithArguments: v

private
o  terminate: aContext
| context |

private accessing
o  finalize

o  setId: idArg process: aProcess

restoration
o  restoreValues
| valueStream context |



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 25 Apr 2024 17:00:36 GMT