Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

well yes they are open by design. If you want closed namespaces just put your functions (as statics) inside a struct.

Btw, visibility rules in a namespace (but not in a struct/class) are the same as for the global namespace, so no, a function in a namespace won't see another declared after it.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: