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 X-Received: by 10.66.146.34 with SMTP id sz2mr255068pab.40.1464960553664; Fri, 03 Jun 2016 06:29:13 -0700 (PDT) X-Received: by 10.157.5.183 with SMTP id 52mr41654otd.2.1464960553360; Fri, 03 Jun 2016 06:29:13 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!q32no3137068qgq.0!news-out.google.com!z5ni63qge.0!nntp.google.com!p34no2117698qgp.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 3 Jun 2016 06:29:13 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=86.146.61.106; posting-account=28F2IwkAAACL1Z5nRC-dE7zuvWdbWC7P NNTP-Posting-Host: 86.146.61.106 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1bc41b66-8dd4-4b4e-903e-f314babc07f9@googlegroups.com> Subject: Buffer PO From: tonyg Injection-Date: Fri, 03 Jun 2016 13:29:13 +0000 Content-Type: text/plain; charset=UTF-8 X-Received-Bytes: 1534 X-Received-Body-CRC: 2818069912 Xref: news.eternal-september.org comp.lang.ada:30578 Date: 2016-06-03T06:29:13-07:00 List-Id: I have a Fifo buffer in a protect object with a push / pop procedures and an is_empty function storing a gaggle of variant records. I push just fine but when I come to collect my data with a pop, I have to assign it to a variable which is predeclared. I cannot use a function as this cannot change the inside of a protected object. Now I could use an extra buffer to contain the variant record discriminator but is there a better way? I did think of adding a function to peek at the discriminator, but this could cause a problem as a push may change the record being viewed before my pop.