- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
U R A tool (and can't understand irony or memes, even when I made it quite obvious).
I've never understood people who write comments without reading previous comments. I know you didn't because otherwise you'd have noticed that I have contributed numerous pearls of wisdom on this thread.
Pot: Baked Potato....Unlike the previous guy, you understand irony so well that you can't help but post only that. Thanks for contributing.
If I had spoken to you like that at a meeting, it would probably be because I'd already fired you. I do like to keep a clear desk though so you might be right on that.
Just wow.
Admin
Also, just drop that meme shit. Not everybody has heard of all the memes you have, and frankly, this site suffers from meme overload anyway...
Admin
I think you've missed something rather vital here...
It is a large number of other people getting all jumpy and overly excited.. I'm just having a fun time trollololing along here.
We do have meme overload though, but it fit in well with my troll theme and way too many people bought into it.
Admin
Admin
Yeah, "it takes two to tango". Or so I've heard.
But I see a bit of a contradiction here: it's not worthwhile to help people understand the WTF, but it is worthwhile to trollolol?
Unless your comments related to the former were only intended as part of trollololing, in which case you don't offer anything that we need should bother paying attention to.
Admin
I guess the problem is that this isn't primarily a place to help others, its a place to point and laugh.
don't get me wrong though, I would love to see these threads contain more knowledgeable, helpful people than trolls.
Admin
I have no doubt that they hadn't.
We're all adding to this. Some knowingly.
Admin
Sounds to me more like someone put their proverbial foot in their metaphorical mouth and is now trying to brazen it out when they know they've made a donkey of themselves. Sorry, but in my office it matters not how zippy you are with whatever languages you happen to know, if you're rude to a client and you lose a contract you don't get a second warning.
Admin
Dear "The Enterpriser", "C-Octothorpe" and "eVil"
In case you can’t tell, this is a grown-up place. The fact that you insist on using your ridiculous handles clearly shows that you’re too young and too stupid to be using FIDONet.
Go away and grow up.
Sincerely, Bert Glanstron
Admin
Who cares?
Admin
Who hasn't cared about something like this?
Admin
{troll-mode off}
I thought assignment returned true unless the assignment failed - hence the problems with errors like if (x=5). I guess I was wrong, at least for C#.
{troll-mode on}
Also, cocks.
Admin
Who hasn't banged a whore like this?
Admin
Even I know how to spell moron...
Admin
over what? because I think that we should be discussing more advanced things than "what is a C# property?".
I'm not in your office and never will be. I couldn't care in the slightest what rules you have or how you treat your customers. Why do you think I would care about that?
I will be rude on here and I will enjoy it. If that means I miss out on a hypothetical contract, then hypothetically that makes me sad, back in reality I still think you are a moran.
Admin
Featured comment material right there, I think.
Admin
If a contractor told me "setting foundation forms is one of the many trivial things I can't be bothered with. I've built multi-level, single and multi-family, centrally heated and cooled, dwellings wired for 200 Amp service with low-vlotage to every room from modern and exotic materials for international clients" I'd tell him to get the fuck out.
God, I hope your big supply chain never touches the retail operation I own.
BTW, "n-tier, event-driven multithreaded DAL and IQueryProvider implementation" sounds like résumé fluff. The kind of thing you put down because the req said you "need experience with n-tier applications, DAL, IQueryProvider and event driven programming in C++. Basic undertansding of C++ not rquired." And, you dont' have to worry about providing any details because, of course, you have an NDA with your former employer.
Admin
The only moran I know of is Mike Moran who was keyboard player in the first lineup of the Ian Gillan Band and performed a duet with Lynsey de Paul in the Eurovision Song Contest in the mid-70's. Unfortunately my (musical) keyboard skills are not sufficient to compete with him.
Now run off home and maybe mummy will let you have a nice lollipop before tea.
Admin
Ah, I see my mistake here. I had originally assumed it would just return a 5, but then when I saw someguy's post I misunderstood his example and for some reason it just made more sense to me that it would work the way I described. I shouldn't have posted without confirming this.
Sorry for adding to the confusion.
Admin
Retail chain you own? Ya rly...
Admin
Why would it return "true"? I think it will return the value of maxRetry, which has been assigned to 5. Its an int property not a bool anyway. Or are you just trolling/bullshitting/joking etc.?
Admin
It would return true if the assignment were evaluated as a bool, and as the assignment were successful it would return true which the return would then return in turn. But it doesn't because it's not.
Admin
Admin
if(x=5) passes because C++ treats 5 as true. Try if(x=0) and see what you get.
Addendum (2011-07-28 12:50): Not just C++, this applies to C as well. Java too. It seems to be pretty common.
In fact, I'm not sure of any languages that return on assignments in the way you described. There may be some, but I can't recall any at this time.
Admin
Admin
This is a common thing to do if you hate logic and your fellow devs.
Admin
Admin
Admin
I suggest you read up on order of precedence
the '+' and '=' operators are evaluated right to left.
Hence:
is evaluated like so..
Admin
Admin
To be fair, he did say "operation". Might mean the eBay store he runs out of his basement, or the stall he maintains at the local farmer's market, or any sort of thing.
This does seem to be getting into a cock-waving competition, though. Put 'em away, boys. If what you say is correct and useful, I don't care where you get your paycheck.
Admin
If you were right, it would display "4", because p1 can never have any value other than 4. However, it displays "7".
Admin
They are not following the best practice: why would they make the assignment silently fail? I would recommend throwing FileNotFound if the property is assigned with value not equal to 5.
Admin
7/28/2011 just appeared (four comments already) so you can all hustle over there instead of beating this horse six ways from Sunday.
Admin
Actually this is exactly as you would expect. I suggest that you also read that site.
The '( )' operator (also known as a function call) is evaluated left to right.
Admin
Chain? Who said chain. I know lots of people who own businesses. You probably do, too. Shit, for awhile it was the thing to do:
But hey, thanks for providing your own example of a useless comment. You have truly humbled me. I'll try harder to evaluate my comments against what I will call the "C-Octothorpe Standard" before posting. Thank you for your patience and guidance whilst I continue to learn.
Admin
Admin
I only know of five ways to beat off a horse. What am I missing?
Admin
What the balls is going on in this thread. Did someone put something in the water?
I hope to God you're trolling. Jamie's reply to you (which you later dismissed) is correct. It's not quite right to say that step 2 is "return maxRetry". Instead, it returns the value that was assigned to maxRetry.It does not reread maxRetry when determining what maxRetry = 5 finally evaluates to. This is what Jamie's code example demonstrates, and also what I wrote about in this post. (Jamie's example is better.)
Your statement is true only when you know that maxRetry has the value that you just assigned, which is not always the case.
Admin
Heh, heh. Good one. I'm not Enterpriser, but you must have the right stand and seen me and my clerk (yes, I have an employee, a part timer) glaring at you. Me because my invoices say things like:
And, my clerk glares because he has to reconcile the inventory every time we get a shipment. Of course, in order to be consistent, he just puts things like:
Sincerely, The Hotdog KING OF THE NOTHWEST
section of the lower food court.
Admin
It's not C++ you stupid cunty little retard, it's C#. Now FOCUS.
Admin
Admin
Though not directly a behavior of the assignment operator itself
will not cimpile in C#. It will compile in C++ and will alwasy evaluate to true.
Admin
That's not the point. C++ has two addition characters in its name, and C# has a character that is often confused with the sharp sign in conventional musical notation. This is important. Wars have been fought over less.
Admin
Admin
I just read your post from earlier. That is very interesting - something I wasn't aware of.
thanks.
Admin
Still, why the disrespect, my douchey little dipshit?
Admin
Admin
Admin
Are you new here? Or do I not understand why you think the post is lame?