|
Yes - on one ear!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Microsoft's CodeDOM does not support operators like += or ++ so while I can emulate them, sort of, my emulated operators will not call the appropriate operator overloads.
Well in the C# compiler that shipped with very early .NET I think you could call the static operator overload methods like op_Addition() manually.
Now, it throws a compile error. This is terrible.
A) There shouldn't be special knowledge of certain static methods, such that the compiler flags them as uncallable.
B) Now I have no way to truly simulate certain operators using the CodeDOM in a language independent manner.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Can't you just translate the lines with that operators back to "normal"?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
No because I don't render the code in the final target language. I simply build the abstract syntax tree for it, and the AST doesn't have anywhere to indicate these types of operators, ergo, the target renderers cannot render them.
A long time ago, I made my own custom renderer for C# that would take things like that, and turn them back to normal as you say, but it requires a custom renderer for each target language, which defeats the purpose of my code.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
There must be a way to do it - the LINQ Expressions API can handle it. Perhaps some spelunking on Expression.AddAssign might reveal the secret sauce?
Reference Source[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
It's not the expressions library and there's no secret sauce
It's just an object model without the appropriate enum for representing those operators.
And there's no backdoor in the renderers that's standard across all of them, not that i know of anyway, and i don't know that there are magic cookies you can send them to render different than stock things in the first place.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Quote: On behalf of Microsoft, International Data Corporation (IDC), a leading technology market research firm, is conducting a global research study. Are you getting these emails? Are you filling in the survey? How seriously do you take it?
.
.
.
.
.
.
Because they take it ultra-non-seriously...
Quote: Survey Completed - Thank You
We are sorry, but it appears that you don't meet the requirements for this survey.
Thank you! And the survey was sent via my Microsoft account that registered with a co.il email address and the country on it is Israel...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
They are probably using Microsoft software with Microsoft AI
|
|
|
|
|
RickZeeland wrote: They are probably using Microsoft software with Microsoft AI
Ad-Lib Intelligence?
They call me different but the truth is they're all the same!
JaxCoder.com
|
|
|
|
|
Yes, very old intelligence (it was used in the Ad-Lib soundcard)
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: Are you getting these emails? No
Kornfeld Eliyahu Peter wrote: Are you filling in the survey? Very probably no
Kornfeld Eliyahu Peter wrote: How seriously do you take it? Not that much
Considering the previous "listen to users / insiders / professionals" that Microsoft has done last years... Do you really think it would make a difference if the survey was answered?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: Are you getting these emails? Unsolicited, and therefore deleted unopened.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: And the survey was sent via my Microsoft account that registered with a co.il email address and the country on it is Israel...
They don't pay attention to things like that.
My Microsoft account is set to United States, English, with a Texas address.
But my IP is in Germany...so I get everything from Microsoft in German. Which I don't really understand well enough to do anything but get into trouble.
|
|
|
|
|
Slang will read it's own program file, that contains C# code to turn C# code into VB code.
It will then use that on itself to turn its own C# code into VB code.
Woot.
It's stupid, and ridiculous, and cool.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Quote: And HTC looked upon all that He had made, and indeed, it was very good.
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
Indeed, they finally produced a new smartphone this year
|
|
|
|
|
It would be even cooler if, when you run the VB version, it translated itself back into C#...
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
But can it run Doom?
|
|
|
|
|
A modern take on the Quine[^]?
(Just be careful it doesn't turn into one of these[^].)
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
Makes perfect sense to me.
|
|
|
|
|
I only speak ancient geek
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
And I thought you only speak CodeDom, sorry
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
That's a dialect of it
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
12/07/2019 07:00 AM 156,568 CSharpLexer.cs
12/07/2019 07:00 AM 840,623 CSharpParser.cs
12/07/2019 07:00 AM 169,481 CSharpParserBaseListener.cs
12/07/2019 07:00 AM 137,019 CSharpParserBaseVisitor.cs
12/07/2019 07:00 AM 131,193 CSharpParserListener.cs
12/07/2019 07:00 AM 77,301 CSharpParserVisitor.cs
12/07/2019 07:00 AM 44,720 CSharpPreprocessorParser.cs
12/07/2019 07:00 AM 8,823 CSharpPreprocessorParserBaseListener.cs
12/07/2019 07:00 AM 6,628 CSharpPreprocessorParserBaseVisitor.cs
12/07/2019 07:00 AM 6,715 CSharpPreprocessorParserListener.cs
12/07/2019 07:00 AM 4,434 CSharpPreprocessorParserVisitor.cs
ANTLR spit that at me for parsing C#6
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|