From: Arne Hueggenberg Newsgroups: comp.lang.beta Subject: Re: problems with processes Date: Mon, 01 Mar 1999 11:59:46 +0100 Organization: Universität Dortmund, Germany Lines: 87 Message-ID: <36DA7322.E03820E2@nef.wh.uni-dortmund.de> References: <19990228081141.24335.qmail@noatun.mjolner.dk> NNTP-Posting-Host: napoli4.cs.uni-dortmund.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 5.6 sun4m) Path: news.cs.au.dk!news.net.uni-c.dk!howland.erols.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!fu-berlin.de!uniol!news.rz.uni-hildesheim.de!Informatik.Uni-Dortmund.DE!news Xref: news.cs.au.dk comp.lang.beta:11847 Sascha Kimmel wrote: > > > >> > > >> Also, when putting it all in one file it seems to work fine, except for > > >> the fact that > > >> > > >> PrintMe[]->RedirectFromChannel; > > >> > > >> results in : > > >> > > >> # Beta execution aborted: Qualification error in reference assignment. > > >> # Look at 'lpr.dump' > > > > > >It's obvious that if there's no process to which the string should be > > >redirected to, there is a little problem. > > >Try <child.RedirectFromChannel;>> > > some checking is in order here, but remember, the code only serves to > > demonstrate my problem > > Yes, but WHICH channel gets the PrintMe[]-Text-reference? > Here it is simply NONE. > > > > > in the second case, where i change lpr.bet so that everything > > happens in it > > there is a process, note that it dumps with an qualification > > error (e.g. some > > reference is passed wich is not properly qualified) not > > ´reference is none´ > > The qualification error is what has me wondering, as text is > > stronger qualified > > than stream it should be no problem to pass it to a method > > expecting a stream. > > Yes, but the method is not bound to/by any process! > > The implementation (processmanager.bet) looks as follows: > > Process: > (* Notice, this(Process) can only be executed once. > * > * Two program executions of the same Process, > * can be executed by instantiating and executing two different BETA > * objects from the same Process. > *) > (# > > [...] > redirectFromChannel: (* redirect input to this(process) from > inputChannel *) > (# error:< ProcessManagerException; > inputChannel: ^Stream; > enter inputChannel[] > <> > #); > [...] > #); > > So you did not qualify the process to which the input should be redirected > to. > So that is a qualification error, I would say. > > > even changing the texts qualification to stream doesent help so > > im guessing its > > something else, but i dont understand what. > > Did you try PrintMe[]->child.RedirectFromChannel ? Thats what my source code says, seems i should hav kept cutting'n'pasting instead of entering that by hand > > >> trying to be clever i then did > > >> > > >> PrintMe[]->qua(# as::< stream #)->RedirectFromChannel; > > >> > > >> > > >> but to no avail, still dumps with the same qualification error in > > >> reference assignment > > > > Regards, > Sascha Kimmel Arne Hueggenberg