|
Can you support pre- and post increment operators for C#, but convert them to a full i = i + 1 in VB (or i += 1, which is supported)?
The pre- and post semantics would be gone, but that's what you get for wanting to use unsupported operators.
Maybe you could show a warning if you have those operators and target VB.
On a side note, I never use pre- and post increment operators and you can do completely without.
They're not THAT convenient and can be confusing if you don't fully understand them (everyone else on the team).
Even the people who say they understand it actually don't (in fact, I'm not even sure if I do).
For example, I wasn't able to predict the outcomes in this quiz[^] for the increment operators (I wonder how well you score!).
As far as I know you can choose to not support them and still do everything you want, but with less ambiguity.
|
|
|
|
|
The CodeDOM is about 80% complete in terms of language support. You can do most of what you can do in a regular language in the CodeDOM, just less ambiguously, as you say.
So you wouldn't have a problem using my tool as is. I think when the CodeDOM was designed VB.NET may not have supported those operators or maybe I'm wrong and they skipped them in the CodeDOM for other reasons.
Postfix is difficult to support because it would require me to internally insert a variable declaration into the code as it is being rendered in order to support it. I may do that in a future version but i'd have to alter how I'm using the codedom to be able to support it (this is backburnered because there's other reasons i want to do it too, like reintroducing switch/case support - simulated using ifs)
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.
|
|
|
|
|
honey the codewitch wrote: like reintroducing switch/case support - simulated using ifs I think that's how the compiler compiles up to three or four case switch statements, as if, else if, else...
How did you do on the quiz?
Or are you too ashamed to share?
|
|
|
|
|
I'm not taking it at this hour and hamstringing myself. It's 2:20am
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.
|
|
|
|
|
D. C. Fontana, 1939-2019 | Tor.com[^]
Star Trek would likely have been less without her efforts. (Even if she was partly responsible for that "The way to Eden" monstrosity. Although it did get rewritten under her.)
TTFN - Kent
|
|
|
|
|
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
|
On the Add Solution to Subversion dialog is a checkbox "Commit files in the intial commit", defaulted to checked.
I unchecked this, and everything works as expected
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Hooray
|
|
|
|
|
so you found the solution to find your solution
|
|
|
|
|
So, I have a server sitting next to my dev PC.
I went on the server and installed SVN Server and set it up. No problems there.
I went onto my Dev PC running VS2017 and install AnkhSVN via Tools => Extensions and Updates. No problem there. I then went to Tools => Source Control and selected AnkhSVN.
I then opened my solution, right-clicked on it, and go down towards the bottom of the menu and there's an Add to SVN option. Awesome!
I select that, and a dialog opens for me to specifiy the URl to the server. I fill that in, click OK, there's a pause for about 20 seconds. The SVN Checking window opens, so I know the AnkhSVN extension is working.
Then VS restarts, and there's no trace of SVN on the Solution menu. POOF! GONE!
Go back into Tools => Source Contro, AND GOD DAMN GIT IS SELECTED AGAIN!!!
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
Is it just this solution, or any solution that has this problem?
What sourcecontrol you're using is stored in the solution file, and if it's corrupt it will revert to default.
|
|
|
|
|
Try VisualSVN. I love it.
|
|
|
|
|
|
|
I see my plea for Git did not convince you
SVN, Visual SVN, Tortoise SVN, AnkhSVN... Good old times
From what I remember I used AnkhSVN only briefly and worked with Visual SVN and Tortoise SVN for years.
|
|
|
|
|
We lost power during a UPS test (the UPS didn't switch on) since about 8:30. Because network connectivity is handled via the VOIP phones, and the switches and routers don't have power, even if we could turn our machines on, we can't do any real work becase we can't connect to any of the servers (which are also affected by the power outage, btw).
Nobody has any idea what went wrong, or when we'll have power back, so... I sat down with my laptop tethered to my phone so I could at least browse the web instead of sitting at my desk, strokin' Captain One-Eye...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
#realJSOP wrote: We lost power during a UPS test
I assume that means the test failed?
|
|
|
|
|
That's what the rest of my OP says...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Marc Clifton wrote: I assume that means the test failed?
It failed in the sense that it failed, but it was a success in the sense that it failed. Good test.
|
|
|
|
|
UPS test during working hours? Huh. K.
|
|
|
|
|
Welcome to the Civil Service, where no one works after 5 PM.
(I leave the rest as an exercise for the student...)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Quote: where no one works after 5 PM. FTFY
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Daniel Pfeffer wrote: Welcome to the Civil Service, where no one works after 5 PM AM.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
me thinks JSOP is on a military installation... where they test things like this monthly.
Worked on an airbase for 5 years. Time for the "power loss generator kick over" - generator came up, ran for 20 minutes and seized. It appears no one had been maintaining the units (in other words, doing their damn jobs). The base is mainly a maintenance facility now, but back then we had F15s and KC135s on alert for TAC and SAC. The base commander and the facility commander got some a$$ that day.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|