生成器 (计算机编程) (Chinese Wikipedia)

Analysis of information sources in references of the Wikipedia article "生成器 (计算机编程)" in Chinese language version.

refsWebsite
Global rank Chinese rank
1st place
1st place
2,232nd place
1,779th place
4,643rd place
3,964th place
low place
low place
1,185th place
809th place
415th place
500th place
153rd place
238th place
2nd place
23rd place
low place
low place

acm.org

dl.acm.org

  • O. -J. Dahl; C. A. R. Hoare. Hierarchical Program Structures. C. A. R. Hoare (编). Structured Programming. London, UK: Academic Press. 1972: 175–220. ISBN 978-0122005503. In SIMULA, a coroutine is represented by an object of some class, co-operating by means of resume instructions with objects of the same or another class, which are named by means of reference variables. ……
    Thus a main program may establish a coroutine relationship with an object that it has generated, using the call/detach mechanism instead of the more symmetric resume/resume mechanism. In this case, the generated object remains subordinate to the main program, and for this reason is sometimes known as a Semicoroutine. ……
    Let X and Y be objects, generated by a "master program" M. Assume that M issues a call (X), thereby invoking an "active phase" of X, terminated by a detach operation in X; and then issues a call (Y), and so forth. In this way M may act as a "supervisor" sequencing a pattern of active phases of X, Y, and other objects. Each object is a "slave", which responds with an active phase each time it is called for, whereas M has the responsibility to define the large scale pattern of the entire computation.
    Alternatively the decision making may be "decentralised", allowing an object itself to determine its dynamic successor by a resume operation. The operation resume (Y), executed by X, combines an exit out of X (by detach) and a subsequent call (Y), thereby bypassing M. Obligation to return to M is transferred to Y.
     

codeproject.com

doi.org

  • Liskov, B.; Snyder, A.; Atkinson, R.; Schaffert, C. Abstraction mechanisms in CLU. Communications of the ACM. 1977, 20 (8). doi:10.1145/359763.359789. 

microsoft.com

msdn.microsoft.com

mit.edu

lcs.mit.edu

okmij.org

python.org

stackoverflow.com

web.archive.org