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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7876e4356325725b X-Google-Attributes: gid103376,public From: tmoran@bix.com (Tom Moran) Subject: Re: Ada.Streams examples Date: 1999/03/17 Message-ID: <36f003ae.8532224@news.pacbell.net>#1/1 X-Deja-AN: 455834386 References: <36e61db4.50430543@news.pacbell.net> <7c64kl$r8s$1@nnrp1.dejanews.com> <36e6cd2c.3377267@news.pacbell.net> <7c6s4s$hrt$1@nnrp1.dejanews.com> <36e6fe8d.16020474@news.pacbell.net> <7c8o0u$509$1@nnrp1.dejanews.com> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.pbi.net 921699898 206.170.2.73 (Wed, 17 Mar 1999 11:44:58 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Wed, 17 Mar 1999 11:44:58 PDT Newsgroups: comp.lang.ada Date: 1999-03-17T00:00:00+00:00 List-Id: >> Someone could presumably do >> type GIFED_Bitmap is new BMP with null record; >> for GIFED_Bitmap'Write use Convert_To_GIF_And_Write; >> Then internally a GIFED_Bitmap is the same as my BMP, and my routines >> all work on it, but when the user writes it he gets his >> Convert_To_GIF_And_Write instead of my BMP'Write. > I can think of several other objections, but they all really boil down to...YUK! He could certainly write his own Write_As_Gif(X : in BMP) and call it directly. Or I could make an abstract 'Write (or could I?) for BMP and a higher level type External_Form_Is_BMP is new BMP with null record; with a 'Write that generates .bmp, and he could make instead type External_Form_Is_GIF is new BMP with null record; etc. I guess I don't react YUK. A multiplatform GIF image seems to me legitimately a higher abstraction level than a Windows DIBitmap/.bmp file.