Another reason to use inline functions
-
Discovered this today and thought I'd share. Another good reason you should always use inline functions when possible is because non-inline functions leak through namespaces.
namespace test1 { function myfunction() { Console.print("You shouldn't see this"); } } myfunction();
-
@d-healey That's mentioned in the docs though:
Namespaces currently work only for const var and reg variables (you'll get another 32 reg slots with every namespace) as well as inline functions.
-
@Christoph-Hart But who reads the docs? :p