The P language
Hello guys! I've an idea of new frontend for GCC. An Objective-D# language! But say "Objective-D Sharp" is quite long, so I call it the P language (shouldn't be confused with the P language of Amaya) because of the BCPL : we have the B and the C, so now that's the P. The language should be just like Objective-C++, but : -The two languages would be compatibler (for inherit Objective-C classes from C++ classes and vice-versa, use C++ objects in Objective-C classes and vice-versa, declare C++ namespaces in Objective-C declarations, declare Objective-C declarations in C++ namespaces, use C++ class features in Objective-C classes and vice-versa, uses C++ classes in Objective-C classes and vice-versa, etc., etc., etc.) -The C++ would be replaced by its successor D. -The C# features would be available (and compatible with Objective-C and D, as I defined in the first point). The .NET framework would be replaced by .GNU.
C PreProcessor GCC-specific features ideas.
I've got ideas for improve the preprocessor with specific features. The basic idea is to make the preprocessing language a complete programming language. That can be useful for includes things like Autotools and advanced Makefiles directly in the source code, and have just a tiny Makefile for compile. 0. Multiple defines on one variable. The "constants" will be transformed in "variables". 1. Assertions #assert will be transformed in : #if ! # #endif (And will be of course re-preprocessed.) 2. Calculating #calculate will be transformed in : #define (And will be of course re-preprocessed.) Example : #calculate N 1+1 will be transformed in : #define N 2 (That can works with any type : bools, etc.) 3. Executing shell commands #exec-sh The shell command while be executed and the result (stdout) of the shell command will be putted in 4. Read and write files #read-file will put the content of the file in , and if is modified, is modified too.