How far can LISP macros go? [closed]

That’s a really good question. I think it’s nuanced but definitely answerable: Macros are not stuck in s-expressions. See the LOOP macro for a very complex language written using keywords (symbols). So, while you may start and end the loop with parentheses, inside it has its own syntax. Example: (loop for x from 0 below … Read more

Why aren’t there macros in C#?

from the C# faq. http://blogs.msdn.com/CSharpFAQ/archive/2004/03/09/86979.aspx Why doesn’t C# support #define macros? In C++, I can define a macro such as: #define PRODUCT(x, y, z) x * y * z and then use it in code: int a = PRODUCT(3, 2, 1); C# doesn’t allow you to do this. Why? There are a few reasons why. … Read more

How do I check for C++20 support? What is the value of __cplusplus for C++20? [duplicate]

The value for C++20 is 202002L, as you can see at [cpp.predefined]p1.1: _­_­cplusplus The integer literal 202002L. [ Note: It is intended that future versions of this International Standard will replace the value of this macro with a greater value. — end note ] Therefore, for compilers that already implement the new standard, you can … Read more

What is the value of __cplusplus for C++17?

tl;dr: For C++17, __cplusplus is 201703L. What is the value of __cplusplus when using C++17? According to the draft standard N4594 §16.8/p1 Predefined macro names [cpp.predefined] (Emphasis Mine): The following macro names shall be defined by the implementation: __cplusplus The name __cplusplus is defined to the value 201402L when compiling a C++ translation unit.156 156) … Read more

Can I have macros in Java source files

You can but you shouldn’t. The shouldn’t part: You shouldn’t because using the pre-processor in that way is considered bad practice to start with, and there are better and more Java-idiomatic ways to solve this use case. The can part: (*) Java itself doesn’t support macros. On the other hand, you could pipe the source … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)