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,92640d662fc31a03 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-04 10:46:52 PST Path: newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: howto make system calls (newbie question) References: <9cuj1n$gsu$1@nh.pace.co.uk> X-Newsreader: Tom's custom newsreader Message-ID: Date: Fri, 04 May 2001 17:46:52 GMT NNTP-Posting-Host: 24.20.190.201 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 988998412 24.20.190.201 (Fri, 04 May 2001 10:46:52 PDT) NNTP-Posting-Date: Fri, 04 May 2001 10:46:52 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: newsfeed.google.com comp.lang.ada:7173 Date: 2001-05-04T17:46:52+00:00 List-Id: > out that in Kernighan & Ritchie (I don't have the ANSI C standard in front > of me) it says there is a "Standard Library" that, while "not part of the Making Ada packages, even if they only consisted of "pragma Import"s, seems very straightforward. Why hasn't it been done? > clock > asctime > ctime > gmtime > localtime > strftime Perhaps this is a clue to the "why it hasn't been done question". Some of this is pointless for Ada, since we already have Ada.Calendar. And the formatting stuff, like asctime, seems to be a victim of the "curse of creativity" - everyone has their own idea of what should be done (see recent thread on date & time formatting routines). The simple translation into a bunch of "pragma Import"s is not exactly exciting, and does not garner much money or fame for the person who does the grunt work. > A little thought about other things commonly supplied by most OS's would > probably yield a bunch more ideas. Maybe we'd start seeing some posts in > Comp.Lang.C(++) to the effect of "I can do XYZ in Ada - how do I do the same > thing in C(++)?" and "Why doesn't C(++) provide me with a function/class to > do ABC which I can do in Ada so easily?" (Maybe we can start some shill > postings? :-) > > Just an idea.... A good one!