Path: news.daimi.aau.dk!news-feed.inet.tele.dk!nntp.uio.no!sn.no!hermod.uio.no!ifi.uio.no!mikkelor From: mikkelor@ifi.uio.no (Mikkel Orheim) Newsgroups: comp.lang.beta Subject: Writing liberaries (I'm stuck) ;-( Date: 20 May 1997 14:41:53 +0200 Organization: Dept. of Informatics, University of Oslo, Norway Lines: 67 Message-ID: <5ls66h$3jd@logi.ifi.uio.no> NNTP-Posting-Host: logi.ifi.uio.no Xref: news.daimi.aau.dk comp.lang.beta:11090 Do anyone know the solution for following. I have written a BETA-program that allows objects to communicate via "events". This is a thing I would like to use several places so I'd like to be able to make it fearly general in a way that I would be able to include "Eventbib.bet", and use the patters described there. My problem is that I want to use concurrency, so that in the original program I have written something like this: ORIGIN '/local/lib/beta/basiclib/current/betaenv'; INCLUDE '/local/lib/beta/basiclib/current/systemenv'; SystemEnv (# . . . Event_User: system (# . . . #) #) Later on I inherit from Event_User, elaborating the users "behaviour". I tried creating a libary-file by using: ORIGIN '/local/lib/beta/basiclib/current/betaenv'; INCLUDE '/local/lib/beta/basiclib/current/systemenv'; --- lib: attributes --- Event_User: system (# #) And in the program write: INCLUDE '/local/lib/beta/basiclib/current/systemenv'; INCLUDE 'Eventbib.bet' SystemEnv (# Advanced_User: Event_User (# . . #) This is obvously wrong (compile errors an mass), and the problem seem to be to be able to use SystemEnv in a "lib slot". I am just picking up my Beta-programming, so I would be grateful for any help. -- (---------------)==========================((((((((() Mikkel Orheim Hovedfagsstudent v/Institutt for informatikk, UiO URL: http://www.ifi.uio.no/~mikkelor/ Tlf: 920 18 746 eller 22 69 74 21