comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: HELP... Need QUICK answer on package
Date: 1997/06/07
Date: 1997-06-07T00:00:00+00:00	[thread overview]
Message-ID: <dewar.865693119@merv> (raw)
In-Reply-To: 01bc730c$d78439a0$84e2b8cd@p5120


bklungle says

<<What you supplied is a little confusing. The outline form on top does not
match the naming in the actual which follows. You also didn't say what
compiler you are using. However, with GNAT, the package spec, body, and
procedure must each be in separate files whose names match the
package/procedure name, and end in .ads for the spec and .adb for the
package body. You can't compile them in one file. Also, MyProcedure must
...


This is a common misconception. GNAT places no restrictions at all on the
names of source files. There is a default naming convention, but no requirement
that this default naming convention be used. The Source_File_Name pragma
and the -x switch to gcc provide completely general naming capabilities.





  parent reply	other threads:[~1997-06-07  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-04  0:00 HELP... Need QUICK answer on package st-denis carole
     [not found] ` <01bc730c$d78439a0$84e2b8cd@p5120>
1997-06-07  0:00   ` Robert Dewar [this message]
     [not found]     ` <01bc73c7$26ddfda0$33fd1fcc@p5120>
1997-06-08  0:00       ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox