Path: news.cs.au.dk!not-for-mail From: "\[tricos.com\] Sascha Kimmel" Newsgroups: comp.lang.beta Subject: Cannot copy NONE? Date: 11 Nov 1999 23:34:39 -0000 Organization: University of Aarhus, Department of Computer Science (DAIMI) Lines: 37 Approved: mailtonews@cs.au.dk Distribution: world Message-ID: <19991111233439.401.qmail@noatun.mjolner.dk> Reply-To: "\[tricos.com\] Sascha Kimmel" NNTP-Posting-Host: daimi.cs.au.dk X-Trace: xinwen.cs.au.dk 942363293 8462984 255.255.255.255 (11 Nov 1999 23:34:53 GMT) X-Complaints-To: news@cs.au.dk NNTP-Posting-Date: 11 Nov 1999 23:34:53 GMT Xref: news.cs.au.dk comp.lang.beta:12162 Hi! I found something quite interesting which does not help to generate compact code - instead it becomes a bit complicated: t,u:^text; do none->t[]; t.copy->u[]; *** THIS GIVES A "REFERENCE *** *** IS NONE" RUNTIME ERROR !! *** Well, normally one would not set a text reference to none, but if I read some data into an array (^text) and just want to copy the values (not the references!) of the corresponding variables into the array (or to any other text reference), it is not possible to do this with small code if it's possible that there are NONEs in there. So do I really need to use (if (t[]<>none) then t.copy->u[]; else none->u[]; if); instead of a small t.copy->u[] ? Any help is appreciated! Regards, Sascha Kimmel