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-Thread: 103376,28a24746aa07c732 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Design help Date: Tue, 13 Mar 2007 17:22:09 -0500 Organization: Jacob's private Usenet server Message-ID: References: <1v79s2t3fjrxu.14pyinp46ngmp.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1173824434 2639 69.95.181.76 (13 Mar 2007 22:20:34 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 13 Mar 2007 22:20:34 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Xref: g2news1.google.com comp.lang.ada:14526 Date: 2007-03-13T17:22:09-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:1v79s2t3fjrxu.14pyinp46ngmp.dlg@40tude.net... ... > Because attribute is not limited the compiler would generate assignment as > a shallow copy. That might get quite dangerous with pointers. Either it has > to be limited or strings need to be by-value (or by-reference counted smart > pointers). Or controlled types with an appropriate Adjust routine. (This is the option I most likely would use). The stream attributes don't include the tag, so they wouldn't cause any additional trouble over the untagged versions. Randy.