Use of const String in receive parameter
The following code should work:
const ConstMsg: String = "ABC";
receive(ConstMsg) {}
Currently it report error Syntax error: expected ":"
Nevermind, I got it to work
Reopened as this is indeed impossible
impossible because you should not do
What's the reason for that? It feels like completely natural semantics.
reason I guess to do another N compiler passes, what's the problem to utilize any template processor and do such replaces if you want
moreover you are free to extend compiler and add this writer, why don't you try?
look, the code you are writing running NOT WHILE COMPILING but on TVM, this is why you shouldn't even think 'cause it's broken design
Of course I can preprocess. But I also want the language itself to have good properties. The compiler should just replace const string with its content first.
no it should not you are wrong but let's stop the flame. you will not believe me and I remember when was just like you to waste more time on this