Path: news.net.uni-c.dk!noatun.mjolner.dk!mail-to-news From: Morten Grouleff Newsgroups: comp.lang.beta Subject: Re: how do i include processmanager for a library Date: 03 Dec 2001 10:37:56 +0100 Organization: Posted to comp.lang.beta by a mailtonews script Lines: 42 Sender: lbr@mjolner.dk Approved: mailtonews@cs.au.dk Message-ID: <9ufhq8$e64$1@news.net.uni-c.dk> References: <20011203092102.29012.qmail@noatun.mjolner.dk> NNTP-Posting-Host: bifrost.mjolner.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.net.uni-c.dk 1007372936 14532 130.225.4.254 (3 Dec 2001 09:48:56 GMT) X-Complaints-To: usenet@news.net.uni-c.dk NNTP-Posting-Date: Mon, 3 Dec 2001 09:48:56 +0000 (UTC) Mailing-List: contact usergroup-help@mjolner.dk; run by ezmlm X-No-Archive: yes In-Reply-To: jochenrollwagen@yahoo.com's message of "3 Dec 2001 01:17:31 -0800" User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 X-Original-Message-ID: X-Original-Sender: mg@hod.mjolner.dk Xref: news.net.uni-c.dk comp.lang.beta:13069 jochenrollwagen@yahoo.com (Jochen Rollwagen) writes: > Morten Grouleff wrote in message news:... > > jochenrollwagen@yahoo.com (Jochen Rollwagen) writes: [...] > > Define your patterns in "--- systemlib:attributes ---". From there you > > can see all patterns defined in the process library. I think you missed the above part. I can't tell from your code example which slot you insert te functions in, as that line was missing. When viewed as a textfile, it should start like this: ORIGIN '~beta/basiclib/basicsystemenv'; INCLUDE '~beta/process/commpipe' '~beta/process/processmanager'; --- systemlib:attributes --- execReadWriteInit: [...] > I'd like to call execReadText from a GUI-based BETA-program. But i > can't compile the code above since i get errors "'process' is not > declared", "attribute 'init' is not declared" and so forth. These are the errors you will get if your code is inserted in the "lib:atributes" slot rather than the "systemlib:attributes" slot. As all process-oriented functions are defined in this slot, code using them must be in this slot as well. To see which slot the code is in, take a look at the "fragment forms" pane in the Mjolner tool. > ('Process' with a capital p doesn't work either. By the way, there's a > mismatch between the examples with 'p'rocess and the library > process/processmanager, where 'P'rocess has a capital P). BETA is not case-sensitive, so the capital "P" is more a matter of style. Still, the library and examples ought to be consistent. Regards, -- Morten Grouleff, M.Sc. C.S., Software Developer, Mjølner Informatics A/S. Phone: +45 70274343 Direct: +45 89425815 Fax: +45 70274344