From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7807efa8b787c793 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: help on task types Date: 1999/03/03 Message-ID: <7bkb9c$s3n$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 450894860 References: <36DD8EBF.EAA@rmcs.cranfield.ac.uk> X-Http-Proxy: 1.0 x5.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Mar 03 21:58:10 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-03-03T00:00:00+00:00 List-Id: In article <36DD8EBF.EAA@rmcs.cranfield.ac.uk>, coxaw@rmcs.cranfield.ac.uk wrote: > If I declare a task type that reads input from a file and prints to > screen > > Then instantiate 3 copies of this type > > can i tell each one to read from a different file ? > > and how is it done ? Hmmm. This sounds suspiciously like a homework problem. I know of 3 ways to pass task specific info to such a task. o Make the object a discriminant in the task type declaration. o Pass the object to the task via a rendezvous. o Use a generic package w/ a task instead of a task type, and instantiate w/ the object. There are probably more. T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own