Path: news.cs.au.dk!not-for-mail From: "Sascha Kimmel \(tricos Mediaservice\)" Newsgroups: comp.lang.beta Subject: Again a question about ^text [Incompatible types of binary operator] Date: 19 Nov 1999 13:21:10 -0000 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 31 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <19991119132110.25721.qmail@noatun.mjolner.dk> Reply-To: "Sascha Kimmel \(tricos Mediaservice\)" NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 943018021 9182114 255.255.255.255 (19 Nov 1999 13:27:01 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 19 Nov 1999 13:27:01 GMT Xref: news.cs.au.dk comp.lang.beta:12167 Hi again, well, what about: .... t:^text; do (if t[] //'TEST' then ... //'TEST2' then ... ... if); .... Well, this won't work, because "(if t[]='TEST' then ... if)" won't work, because I should use "(if 'TEST'->t.equal then ... if)". But if you have many many comparisons of texts in your program a simple (if 'TEST'->t.equal then ... if); (if 'TEST2'->t.equal then ... if); (if 'TEST3'->t.equal then ... if); ... doesn't look very well, so is there a possibility? Regards, Sascha Kimmel