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,47645c013367a8d6 X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Re: Text control characters Date: 1997/09/11 Message-ID: <5v9vj1$dge$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 271756272 Distribution: world References: X-XXMessage-ID: Organization: RMIT Newsgroups: comp.lang.ada Date: 1997-09-11T00:00:00+00:00 List-Id: The question is "how can i write operating system dependent stuff in an operation independent manner" and the answer is "by isolating O/S dependent stuff in a package" package Unix.Line_Terminators is Line_Terminator : constant String := Ascii.LF & ""; end; with Unix.Line_Terminators; package OS.Line_Terminators is Line_Terminator : String renames Unix.Line_Terminators.Line_Terminator; end; and then get your configuration system to choose the appropriate with (maybe even use a preprocessor! to select a with statement). Thinking about it, the preprocessor selection of a with statement would seem to be a fairly benign use of preprocessors. Can anyone see any great harm in this scheme? Dale