Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

Using namespaces

Started by Miss Apr 21, 2025 at 7:58 PM 2 replies 1.8k views
Original Post
Miss
Miss

Since the first post in this forum about namespaces being introduced, it was hinted that at some point we may get the using namespace; syntax from C++ in Angelscript. Is this still planned?

It just came up in a discussion we had about implementing a logging API, where it would be nicer to type info("hello") rather than log::info("hello"), given we can do something like using log; first.

WitchLord
WitchLord

Thanks to @programier support for using namespaces is already implemented in the current WIP ๐Ÿ™‚

AngelCode.comย - game development and more - Reference DBย - game developer references
AngelScriptย - free scripting library -ย BMFontย - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel
Miss
Miss

That's awesome! I had no idea this was already implemented. Thanks!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.