The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
I do a good bit of maintenance of assmembler code, and darn near all of the labels are beautifully cryptic like that. Switching back and forth between c++ and assmebler is a joy that way.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
".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
Ah, I see you have the machine that goes ping. This is my favorite. You see we lease it back from the company we sold it to and that way it comes under the monthly current budget and not the capital account.
I am a little wary of extension methods on 'Int32 because of compiler error #CS0023
<CS0023 Operator '-' cannot be applied to operand of type 'XXXXXX
caused by an attempt to use/call the method on a negative integer; while this can be worked around by putting the negative value in parens; I find that tedious.
var x = -100.SomeExtension(10); // will not compilevar y = (-100).SomeExtension(10); // will compilevar z = 100.SomeExtension(10); // will compile
I regret to say this same error occurs in VS 2017, using the latest FrameWork version.
I assume this is an operator execution precedence issue ?
I have not evaluated whether this error occurs with other numeric Types; I hypothesize it will.
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008
modified 15-Feb-17 11:56am.
Last Visit: 31-Dec-99 19:00 Last Update: 25-Mar-17 9:21