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-Thread: 103376,d358a6b145a79134 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Compilation without implementation source References: <43c33a30-8f1e-43a1-b84a-a22c4a37248a@v29g2000hsf.googlegroups.com> In-Reply-To: <43c33a30-8f1e-43a1-b84a-a22c4a37248a@v29g2000hsf.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1201453489 12.201.97.213 (Sun, 27 Jan 2008 17:04:49 GMT) NNTP-Posting-Date: Sun, 27 Jan 2008 17:04:49 GMT Organization: AT&T ASP.att.net Date: Sun, 27 Jan 2008 17:04:49 GMT Xref: g2news1.google.com comp.lang.ada:19613 Date: 2008-01-27T17:04:49+00:00 List-Id: Gene wrote: > For an educational exercise using GNAT and gnatmake, I need to hide > implementations of some modules from students in the simplest possible > way. > > Is there a way to give them .ali, .ads, and .o files while withholding > the corresponding .adb, somehow telling gnatmake (and gnatbind) to > ignore the absence? IIRC, if the .ali files are read-only, GNAT will not require the source of the bodies. This may not work for generics or other cases where the compilation has a dependency on the body, such as cross-unit inlining. -- Jeff Carter "Whatever it is, I'm against it." Horse Feathers 46