From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 21 Jul 93 10:27:52 GMT From: leviticus!karl@uunet.uu.net (Karl A. Nyberg) Subject: gethostname (Was: SunAda question) Message-ID: List-Id: In article <9307202026.aa28700@Paris.ics.uci.edu> kanderso@mabillon.ICS.UCI.EDU (Kenneth Anderson) writes: >Frankly, I'm offended! This completely violates everything that I've >been taught about Ada functions! The actual parameters of a function >should not be modified. A function should only return one value. > >Wow, this is ugly! (Me thinks me smells a C programmer lurking > behind that "function"...) > >Thanks again to Keith, Karl, and Tim for their help... I'll use gethostname >but I don't have to like it... You're confusing languages with operating systems. What you want to say is that you'll use UNIX, but you don't have to like it. The UNIX system call could be rewritten to be more "pure", in terms of your mathematical notion of what a function should do, but I wouldn't hold my breath... -- Karl -- p.s. again - look at what the POSIX standard says. I'll bet the P1003.5 guys have done a better job at this. Right, Dave? -- Karl Nyberg -- karl@grebyn.com Grebyn Corporation -- 1-703-281-2194 P. O. Box 497 -- Yes, I speak for the company. Vienna, VA 22183-0497 -- I own it.