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: "Steve Folly" Subject: Re: help on task types Date: 1999/03/03 Message-ID: <920495384.23993.0.nnrp-09.c2de848f@news.demon.co.uk>#1/1 X-Deja-AN: 450892750 X-NNTP-Posting-Host: follysplace.demon.co.uk:194.222.132.143 References: <36DD8EBF.EAA@rmcs.cranfield.ac.uk> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 920495384 nnrp-09:23993 NO-IDENT follysplace.demon.co.uk:194.222.132.143 Newsgroups: comp.lang.ada Date: 1999-03-03T00:00:00+00:00 List-Id: coxaw wrote in message <36DD8EBF.EAA@rmcs.cranfield.ac.uk>... >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 ? > 1. Why not create an entry point with a parameter specifying the file? 2. Or make it a discriminated task type, where the discriminant is an access string type which identifies the file - that way you don't need to explicitly call an entry point; just declaring it would start the task and it could read the discriminant. Steve Folly mailto:steve@follysplace.demon.co.uk