Path: news.cs.au.dk!not-for-mail From: Flemming Gram Christensen Newsgroups: comp.lang.beta Subject: Re: Plowing on :-) Date: 02 Jun 2000 11:37:57 +0200 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 49 Message-ID: References: <393525F0.D11FDA0@skynet.be> NNTP-Posting-Host: odin.mjolner.dk X-Trace: xinwen.cs.au.dk 959938678 16868020 255.255.255.255 (2 Jun 2000 09:37:58 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 2 Jun 2000 09:37:58 GMT X-Newsreader: Gnus v5.7/Emacs 20.4 Xref: news.cs.au.dk comp.lang.beta:12379 Atle writes: > Although I don't have a Beta-book yet, I try to do some assignments from a file > > ~/beta/doc/teaching/teaching-22.html > > At assignment nr. 6, we are suppose to analyze the following program and trace its allocations. > I reproduce the program under, to avoid looking it up. > Thanks. > (# Ptn: (# i: @integer; > t: @text > enter (i, t) > do ' ' -> t.put; > i -> t.putInt > exit t[] > #); > j: @integer; > s: @text; > p: @Pth > do (* first sequence *) > 17 -> j; > 's:' -> s; > (j,s) -> p; > p -> putline; > > (* second sequence *) > 17 -> j; > 's:' -> s; > (j,s) -> &Ptn; > p -> putline > #) > > The program will not compile, unfortunately, I am not yet familiar enough with the syntax to fix it. The problem lies in a type in the html file. The last attribute declaration should look like: p:@ptn; and not: p:@pth; ^ ^ Regards /Flemming Gram Christensen