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,b1558fe570ef93b8 X-Google-Attributes: gid103376,public From: dewar@gnat.com Subject: Re: Problems with ADA libraries Date: 1998/11/06 Message-ID: <71ut2n$vdr$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 409007471 References: <3642143b.0@news1.mcmail.com> <36423ddc.24016891@SantaClara01.news.InterNex.Net> X-Http-Proxy: 1.0 x10.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Fri Nov 06 13:20:22 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1998-11-06T00:00:00+00:00 List-Id: In article <36423ddc.24016891@SantaClara01.news.InterNex.Net>, tmoran@bix.com (Tom Moran) wrote: > It's Ada.Calendar, with an 'a', not calender. I didn't see my earlier post, so I will briefly repeat it. If you had used the proper name for this package (which is Ada.Calendar, and not simply Calendar, which is an old obsolete usage for Ada 83 compatibility that should not be used in new Ada 95 code), then GNAT would have given you a nice error message: 1. with Ada.Calender; use Ada.Calender; | >>> "ada.calender" is not a predefined library unit >>> possible misspelling of "ada.calendar" But we can't give that message for Calender, since there is nothing to stop you naming your own package Calender! Robert Dewar Ada Core Technologies P.S. it is not immediately obvious how GNAT knows enough to give this message, if you are interested in looking have a look at the par-load.adb file (hint: it has to do with file name crunching!) -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own