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,e9247d4ba8198ede X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 26 Jul 2006 13:25:41 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Actual stream of a certain type References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Wed, 26 Jul 2006 13:25:41 -0500 NNTP-Posting-Host: 67.164.83.70 X-Trace: sv3-ZGAi7EYh/TQ1x3V/HAzmnFIidFMsq7n8CwyKe14rMtDt/7V35+47U6oyikol0bMJlpQrw5fmx62t2Vz!Ns2p4yI1YcXlvH4XkbxL/0vfo2D+22H6vpkM+feIlDNT9iTvEyCDkqysyVQyaC5IalrRVbgYBsCM!sOXQ2K3AXZ4wWg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:5946 Date: 2006-07-26T13:25:41-05:00 List-Id: > I want to write a library that exports a type T whose stream > operations 'Write and 'Read require that the actual stream be of a > certain type, also provided by the library, and visible and usable in You can write your own 'Read and 'Write for T and within those check if not Stream.all in T_Kind_of_Stream then raise ...