[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How are system parameters entered into s-taprop.adb?



On Fri, 2012-03-30 at 11:11 +0000, darkestkhan wrote:
> 2012/3/29 Svante Signell <svante.signell@telia.com>:
> >> You should really learn how Ada packages work :)
> >
> > It's on the TODO list, TTT (Things Take Time) :-)
> > Looks like you have to scan several files to get an idea about package
> > structures.
> > One thing, still puzzling: .adb vs .ads files, what controls which ones
> > does get compiled?
> >
> > Anyway, thanks for your replies!
> >
> 
> *.ads files are specification files - they contain only specifications
> of procedures, functions, interfaces, constants, tasks, etc. while
> *.adb files are implementations of corresponding .ads file (ie.
> some_package.adb is implementation of specification some_package.ads).
> One can compare it to .h and .c files in C (though specifications in
> Ada are much more important than in C).

Looks like if there is an .adb file present, the corresponding .ads
file is not compiled. Can I freely remove the .adb file to get the .ads
file compiled. In case there are both .adb and .ads files available,
what is the function of the .ads file??

> PS: Ada is lady's name not some acronym ;)

Using Ada in the future.



Reply to: