Path: news.daimi.aau.dk!glad From: "S\xren Brandt" Newsgroups: comp.lang.beta Subject: Re: THIS and COMPONENTs Date: 22 Jul 1996 21:32:16 GMT Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 28 Approved: mailtonews@daimi.aau.dk Distribution: world Message-ID: <4t0s10$jrs@gjallar.daimi.aau.dk> NNTP-Posting-Host: daimi.daimi.aau.dk Kasper Osterbye wrote: > > Hi, > > Is there a way to obtain a referece to the currently executing > co-routine? Yes. The systemenv pattern (in basicsystemenv.bet) contains the following declaration: theActive: ^|sysHead; which is exactly what you are asking for. > I need it for a simulation framework where I would like a co-routine > to put itself into a queue. theActive[]->q.append; or similar should do the trick. > Or is the lack of such a feature the reason why it is S[]->fork rather > than S.fork? No. I don't know why this is so. Let's blame history. -- Soren