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,e61c8636ef35379d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-12 22:52:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.frmt1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Escape Sequences in Strings References: <93objj$guk$1@nnrp1.deja.com> X-Newsreader: Tom's custom newsreader Message-ID: Date: Sat, 13 Jan 2001 06:48:25 GMT NNTP-Posting-Host: 24.20.190.201 X-Complaints-To: abuse@home.net X-Trace: news1.frmt1.sfba.home.com 979368505 24.20.190.201 (Fri, 12 Jan 2001 22:48:25 PST) NNTP-Posting-Date: Fri, 12 Jan 2001 22:48:25 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:3984 Date: 2001-01-13T06:48:25+00:00 List-Id: In article <93objj$guk$1@nnrp1.deja.com>, robert_dewar@my-deja.com wrote: > Ada.Text_IO.Put (Home_Cursor & "hello there!"); If I saw this in real code, I would be unhappy. It assumes a) that cursor positioning is done by sending a special string, b) that this greeting string should always be placed at cursor home position, c) that the string will always be "hello there!". A more thorough application of information hiding would have a low level routine "Home_Cursor" used by a mid-level routine "Move_To_Greeting_Field" which would be followed by output of a Greeting string from a set of message string constants.