Can I add methods to the global namespace (the root namespace that contains System), so I can write, without uses clause, MyFunction instead of namespace.MyFunction?
Working in the System namespace now - this has the required effect.
either works, you can add types to any namespace, you can also use “namespace;” at the top of thee unit to define types without any namespace. And System
is always used, yes.
That said, I’d question whether this is a good idea (either no-namespace or adding stuff to System). whats the real end goal here?
1 Like
End goal is to add keywords - for my VB.Net RTL.
And indeed, namespace; works
1 Like
Yeah, but why not have them in a namespace (and use that via the Default Uses Clause setting, say). feels cleaner…