Home » Community » Coffee corner » C++ modules support is coming
|
|
Re: C++ modules support is coming [message #47803 is a reply to message #47801] |
Thu, 30 March 2017 23:01 |
|
Klugier
Messages: 1083 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
The modules concept are easy. Modules will drop support for current double file system (header and implementation) and unify it in one file like it is in other languages like Java or other modern languages like golang.
The code will look like this (Upp exampele)
// Core.cpp:
module Upp.Core;
class File
{
public:
// File methods...
};
// MyProject.cpp
import Upp.Core; // No include, however #include "" will be probably still possible for backwards compatibility.
CONSOLE_APP_MAIN // Macro handling is big mystery for me?
{
File file;
// Do something with the file...
}
The above example is only concept and it base only on my feature imagination. Of course the final implementation can be different, so you could study standard documentation to obtain more knowledge.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Thu, 30 March 2017 23:02] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Oct 06 13:47:41 CEST 2024
Total time taken to generate the page: 0.00445 seconds
|