Path: news.net.uni-c.dk!not-for-mail From: Michael Westergaard Newsgroups: comp.lang.beta Subject: Re: Now I start again Date: Tue, 16 Apr 2002 16:21:58 +0200 Organization: UNI-C Lines: 38 Message-ID: <3CBC3386.FC30190@cs.au.dk> References: NNTP-Posting-Host: horse05.cs.au.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.net.uni-c.dk 1018966922 8406 130.225.18.245 (16 Apr 2002 14:22:02 GMT) X-Complaints-To: usenet@news.net.uni-c.dk NNTP-Posting-Date: Tue, 16 Apr 2002 14:22:02 +0000 (UTC) X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.9-12smp i686) X-Accept-Language: en Xref: news.net.uni-c.dk comp.lang.beta:13192 Jan Atle Ramsli wrote: > > > What did I do wrong (I fixed it by omitting f:(##), but I would like to > know > > f:@file(# NoSuchFileError::<(# do {Something cool on a status line} #); > listBoxFile:@f(# do 'listboxcontents.txt'->name #); > do listBoxFile.openRead; > > This is did not like, and told me something about the superpattern > needing to be a simple pattern - I didn't understand it. > It also said that name was not declared ... > > When I changed it to > > listBoxFile:@file(#NoSuchFileError::<(# do {Something cool on a status > line} #); > do 'listboxcontents.txt'->listBoxFile.name; > listBoxFile.openRead > > It sang along like like a doo-waa lady ... no problem at all. > > What I fail to see is why? > > Can someone help me? > Because "f" is an object, not a pattern. You cannot inherit from an object. Simply remove the "@" in front of it, and you should be rolling. -- _______ / \ Michael Westergaard / /|/| \ \ http://klafbang.dk/ ( ( ` | ) ) \ \ |/\/ / Mit ur går stadig efter vintertid. Det giver en \_______/ dejlig, men falsk, følelse af at have god tid.