Walter Bright:

D has so many language features, we need a higher bar for adding new ones, especially ones that can be done straightforwardly with existing features.

If I am not wrong, all this is needed here is a boolean compile-time flag, like "__is_main_module". I think this is a small enough feature and gives enough back that saves time, to deserve to be a built-in feature. I have needed this for four or five years and the need/desire isn't going away.

Bye,
bearophile

Reply via email to