Re:An exploration of why Python doesn't require a 'main' fun...
by heavenlyblue on Tuesday July 21, 2020 @01:46PM
(#23909018)
Um, DLLs have it.
I used it to inject my own code in foreign executables.
I used it to inject my own code in foreign executables.
Arguably it also keeps things like libraries simpler. For example, what would it mean for me to have top-level expressions in a dynamic shared library? Does it execute as soon as I dlopen() it? Does it create an implicit "init" function that I need to call?