|
|
All languages have their stupid parts, this is in my opinion one of the major ones of the languages deriving from C.
|
|
|
|
|
Unfortunately that happens, and aging doesn't help.
Interestingly enough, in spite of 0x01AA remark, g++ doesn't complain about
class Foo
{
int F;
public:
Foo(int f){F = F;}
But it does complain about (which is, by the way, the construct every sensible C++ developer would have chosen)
class Foo
{
int F;
public:
Foo(int f):F(F){}
spitting out a sane
warning: ‘Foo::F’ is initialized with itself
|
|
|
|
|
|
I don't even know what language this is, but I will presume Java.
You have Value3 being assigned to the value of ... Value3, so nothing happens there. Evidently, it is initialized to the value of 0. Is it a default int when there is no declaration type?
|
|
|
|
|
C#, and exactly.
Stared and stared and stared and debugged and stared and had another coffee then...
C# will warn you if you do "=" instead of "==" but I was surprised it didn't warn about X = X.
cheers
Chris Maunder
|
|
|
|
|
you forgot to put _ in front of your parameter names.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Looks like you've committed a capital offence!
|
|
|
|
|
I looked at it and looked at it and didn't see it either.
|
|
|
|
|
I saw it fairly quickly, there again this sort of case is very easy to miss when you are the one who wrote it.
It's the reason why rubber ducks or cardboard programmers are so important.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Because it's emulating the English language:
I am I
You are you
He is he... or maybe she... or he could be it! Warning, Will Robinson!
In English, this would be picked up earlier -- at the editor level, not compiler.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Wouldn't be a problem in VB.
Outside of a dog, a book is a man's best friend; inside of a dog, it's too dark to read. -- Groucho Marx
|
|
|
|
|
You would have found that pretty quickly with JetBrains, e.g.
|
|
|
|
|
Chris Maunder wrote: /slaps self repeatedly, and insert appropriate comic[^] Given that I just passed my 28th anniversary in my current position, I have had 3rd and even 4th-generation opportunities for self-slappage.
I keep waiting for one of my past selves to show up and say "Look, you senile old git! We did this before, this was the wrong way, you had to fix it, now get it right the first time!"
Software Zen: delete this;
|
|
|
|
|
The perils of case sensitive languages.
|
|
|
|
|
Is a Labragoogle good at fetching data?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Now that one was ruff!
"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
|
|
|
|
|
Not as ruff as a Bingle!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You are getting setter and setter at these.
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Oh, it'll fetch data alright, and never let go of it.
You also can't train it to stop from sniffing everybody's butts all the time.
|
|
|
|
|
That's a Labrabingle!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
If we're going to pit Google against Bing...then honestly I'm not worried about Bing.
Even though I'm using MS online services a lot more than Google's, Bing clearly still remains rather clueless as to who am I. Google, OTOH, despite me making proactive efforts not to ever log into anything of theirs, has a much more accurate profile. How they do it, I'm not sure, but to me it reeks of underhanded tactics they'd rather not have anyone know about.
|
|
|
|
|
Only if it knows the right pointer.
Socialism is the Axe Body Spray of political ideologies: It never does what it claims to do, but people too young to know better keep buying it anyway. (Glenn Reynolds)
|
|
|
|
|
That comment spaniels many topics - and might give one paws to contemplate. Well, lad, keep a sniff upper lip and try again, tomorrow.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Nah, its simply a really big dog with bad spelling...10¹⁰⁰ cubic centimeters, I hear
|
|
|
|