Semantics question regarding the General Computation Model

43 views
Skip to first unread message

Glenn Osborne

unread,
Oct 6, 2015, 3:35:02 PM10/6/15
to Mozart Hackers
The General Computation Model of the CTM book shows the following simplification from Construct 1 to Construct 2. I don't see how Construct 2 can work without a thread. What am I missing?

Construct 1:

proc {Ints N Xs}
    thread P in
        {WaitNeeded Xs}
        proc {P Xs} Ys in Xs=N|Ys {Ints N+1 Ys} end
        {P Xs}
    end
end

Van Roy, Peter; Seif Haridi (2004-03-01). Concepts, Techniques, and Models of Computer Programming (Page 797). MIT Press. Kindle Edition. 

Construct 2:

proc {Ints N Xs}
Ys in
    {WaitNeeded Xs}
    Xs=N|Ys
    {Ints N+1 Ys}
end

Van Roy, Peter; Seif Haridi (2004-03-01). Concepts, Techniques, and Models of Computer Programming (Page 798). MIT Press. Kindle Edition. 
Reply all
Reply to author
Forward
0 new messages