Path: news.daimi.aau.dk!not-for-mail From: Manmathan Muthukumarapillai Newsgroups: comp.lang.beta Subject: Re: Untyped variables? Date: Fri, 06 Jun 1997 01:11:15 +0200 Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 78 Message-ID: <33974793.41C6@daimi.aau.dk> References: <199706050743.JAA12648@mjolner.mjolner.dk> NNTP-Posting-Host: chlorine.daimi.aau.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (X11; I; IRIX 6.2 IP22) CC: usergroup@mjolner.dk Xref: news.daimi.aau.dk comp.lang.beta:11130 Peter Oliver Monz wrote: > > Hallo! > > I have a Problem by changing a dataconverter form perl to Beta. In the > converter > I need the possibilty to use a variable as textobject for transforming and as > integer for additions. Can I specify a untyped variable in Beta? > > Can you help me? > > peo > > -- > Mit freundlichen Gruessen > > peo > > -- > Peter Oliver Monz * Tel: 0231-432970 oder 0172/2320875 > peo@ALKIBIA.PING.DE > peo@gaymen.de > http://WWW.PING.DE/~peo So far as I know, you cannot specify a untyped variable in Beta. Maybe you need a specialized IntegerObject like this: ------------------------------------------------ ORIGIN '~beta/basiclib/v1.5/betaenv' --- program: descriptor --- (# textIntObject:IntegerObject (# outText: (# out:^text; do &text[]->out[]; value->out.putInt; exit out[] #); inText: (# in:^text; enter in[] do in.asInt->value; #); #); obj1,obj2:@textIntObject; do 34->obj1; '10'->obj2.inText; obj1+obj2->obj2; obj2.outText->putline; '23'->obj2.inText; obj2+12->obj1; obj1.outText->putline; #) --------------------------------------------- If this isn't what you were looking for then please explain what you need. Since I do not know anything about perl, my answer could be useless... regards Mannan -- +++++++++++++++++++++++++++++++++++++++++ Email: mannan@daimi.aau.dk WWW : http://www.daimi.aau.dk/~mannan/ +++++++++++++++++++++++++++++++++++++++++