Pre-RFC: Add language support for global constructor functions

For prior art, looking at Ada should be worthwhile, particularly for the run-order problem.

There’s an decent overview here of both the language model and some Gnu extensions:

https://docs.adacore.com/gnat_ugn-docs/html/gnat_ugn/gnat_ugn/elaboration_order_handling_in_gnat.html

2 Likes