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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp3-1.free.fr!not-for-mail From: William FRANCK Newsgroups: comp.lang.ada Date: Mon, 14 Oct 2019 21:41:53 +0200 Message-ID: <5da4cf81$0$20312$426a74cc@news.free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: How to transfer Class-Wide object to a Task ? User-Agent: Unison/2.2 Organization: Guest of ProXad - France NNTP-Posting-Date: 14 Oct 2019 21:41:54 CEST NNTP-Posting-Host: 92.184.98.78 X-Trace: 1571082114 news-1.free.fr 20312 92.184.98.78:38455 X-Complaints-To: abuse@proxad.net Xref: reader01.eternal-september.org comp.lang.ada:57277 Date: 2019-10-14T21:41:54+02:00 List-Id: Hey all ! Here is a nice issue I have with Ada (GNAT 2012) when trying to do OO dispatching with streams in different tasks ... Here it is : I'd like to get from a task RdV (Entry-Access) an object which could be any subclass of a root'Class, and pass it to another task Context : read (Root'Class'Input() ) tagged records from an input stream, and send them to anther task which will write (Root'Class'Output() ) the given records to another output stream. I'm stuck with task memory isolation with does NOT allow to pass any access object to a Root'Class. Should I try to use a protected object ? (not shore this solves the passing of a Class-wide object ...) Thanks for your feed-back, William