Codigo: Fox_Marc en la tienda de epic games para apoyarme Blog De Fox_Marc Ahora subo princess connect, fortnite y juegos para móvil mientras farmeo. Intentaré hacer un canal variado inicialmente empiezo con vídeos de Castillo furioso pero en el futuro haré otros tipos de juegos: Call duty, Gta, Mgs, Fortnite, etc Me gustaría dar las gracias a todos los que visitéis mi canal y espero ganarme vuestro like y suscripción. Saludos y bienvenido a mi canal. ^_^
viernes, 19 de agosto de 2022
Show HN: Modifying Clang for a Safer, More Explicit C++ https://ift.tt/XrzmC6R
Show HN: Modifying Clang for a Safer, More Explicit C++ Modified C++ Inspired by the paper "Some Were Meant for C" by Stephen Kell, I decided to show that it's possible to iterate C++ to be safer, more explicit, and less error-prone. Here's a possible starting point: I didn't invent a new language or compiler, but took the world's best compiler, clang, and modified it to begin iterating towards a new furture of C++. Naming things is hard, so I call this 'Modified C++'. Some of the following could be implemented as tooling in a linter or checker, but the idea is to update the compiler directly. I also wanted to learn more about clang. This compiler needs a flag to enable/disable this functionality so that existing library code can be used with a 'diagnostic ignored' pragma. You can build clang using the normal non-bootstrap process and you'll be left with a clang that compiles C++ but with the following modifications: - All basic types (excluding pointers and references) are const by default and may be marked 'mutable' to allow them to be changed after declaration - Lambda capture lists must be explicit (no [&] or [=], by themselves) - Braces are required for conditional statements, case and default statements within switches, and loops - Implicit conversions to bool are prohibited (e.g., pointers must be compared against nullptr/NULL) - No goto support - Explicit 'rule of six' for classes must be programmer-implemented (default, copy, and move c'tors, copy and move assignment, d'tor) - No C style casts Here's an example program that's valid in Modified C++: mutable int main(int, char**) { mutable int x = 0; return x; } Here's another that will fail to compile: mutable int main(int, char**) { int x = 1; x = 0; // x is constant return x; } I'd like your feedback. Future changes I'm thinking about are: - feature flag for modified c++ to enable/disable with 'diagnostic ignored' pragma, to support existing headers and libraries - support enum classes only - constructor declarations are explicit by default - namespaces within classes - normalize lambda and free function syntax - your ideas here https://ift.tt/cFwbU5Z August 17, 2022 at 09:21PM
Suscribirse a:
Enviar comentarios (Atom)
Escribe !emote y tu emote para unirte al juego
Watch video on YouTube here: https://youtu.be/3tGZ-bSpFWE
-
Show HN: Sleekplan – Feedback Board, Roadmap, and Changelog for Websites https://ift.tt/3wdB1O8 March 30, 2021 at 02:23PM
-
Show HN: Firefox extension to obfuscate web page text Sometimes you might want to share a screenshot of the website you're on, without r...
No hay comentarios:
Publicar un comentario