Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
Klugier is currently offline  Klugier
Messages: 1106
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

 
Read Message
Read Message
Read Message
Previous Topic: Upp installer
Next Topic: Very impressed!
Goto Forum:
  


Current Time: Thu Aug 21 18:23:03 CEST 2025

Total time taken to generate the page: 0.00310 seconds