Path: news.daimi.aau.dk!news.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!sunic!mn6.swip.net!plug.news.pipex.net!pipex!tube.news.pipex.net!pipex!lade.news.pipex.net!pipex!news.be.innet.net!INbe.net!news.nl.innet.net!INnl.net!hunter.premier.net!news.mathworks.com!newsfeed.internetmci.com!in1.uu.net!EU.net!Germany.EU.net!Dortmund.Germany.EU.net!Informatik.Uni-Dortmund.DE!news From: knaut@schroeder (Claus-Peter Knaut) Newsgroups: comp.lang.beta Subject: Global Variables Date: 07 May 1996 11:42:34 +0200 Organization: University of Dortmund, Germany Lines: 22 Sender: knaut@schroeder Message-ID: Reply-To: Claus-Peter Knaut NNTP-Posting-Host: schroeder.informatik.uni-dortmund.de X-Newsreader: Gnus v5.1 Hello, We are developing an Probabilistik Database in BETA. We need global variables. How do you manage to use them. You can not place them in lib: attributes because there you can define no static objects. We manage it by placeing all beta-code in one main.bet. And only main.bet links to betaenv.bet. There we can define a global variable and use it in all code below main.bet. But that seems not the right way. We think of using the objpool.get method, but then we will have to place it everywhere where we need a global variable. And we don`t know how fast this .get is, but we have time-sensitive code there. How do you do it ? CP knaut@ls6.informatik.uni-dortmund.de