I wrote a library in Ada and I would like for the client to only need to include one package into their code. Something like:
with all_packages;
That will include all the packages useful for the client. I wrote the library with one package for each tagged type to keep things simple and easy to read.
How do I give the library user the possibility to include all packages with only one statement?
You can't.
You did well by encapsulating each tagged type in its own package, that's the approach recommended for object-oriented programming in Ada.
Client code then simply 'withs' just those packages it needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With