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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e7eb1c5f294e17be X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-30 10:50:41 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!csn!boulder!news.coop.net!news.den.mmc.com!iplmail.orl.mmc.com!usenet From: "Theodore E. Dennison" Newsgroups: comp.lang.ada Subject: Re: Assignment of limited private types... Date: 30 Jan 1995 18:50:41 GMT Organization: IPL InterNetNews site Message-ID: <3gjce1$1he@theopolis.orl.mmc.com> References: NNTP-Posting-Host: milkyway.orl.mmc.com Date: 1995-01-30T18:50:41+00:00 List-Id: stevem@dcs.gla.ac.uk (Steve McGowan) wrote: > > I'd like to pass in a 'file_type' identifier into a task, make a local > copy of this identifier within the task, and then write text to this > file stream inside the task. > > But I cannot do this since 'file_type' is limited private. > > Any ideas how I can pass in this identifier, and to write to it > locally? > The reason people make types "limited private" is so users CAN'T make local copies of the objects. If the designer wanted you to be able to make copies of file_type objects, she would have made the type "private". If for some reason you HAVE to make a copy, you could use an unchecked_conversion, but DO NOT DO THIS! Odds are very high that you will not get the results you desire. Try something else. T.E.D.