It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
dtgreene: Another problem would be the following (and I think this might affect JavaScript, but I am not sure):
int func(int x)
{
if (x = 0) {
puts("No, I will *not* divide by zero; you can't make me.");
abort();
} else {
return 60 / x;
}
}
avatar
Alaric.us: JS has has both positive and negative Infinity, so division by zero is allowed. Take a look at the screenshot.
It is still probably *not* what you want here; this function will always return infinity or nan, and that is clearly not what the programmer intended. (Notice that the expression in the if statement is an assignment, not a comparison?)

(Rust fixes this issue by having the assignment return (), and by having if statements require boolean values, so the code fails to compile.)

(Python fixes this by not allowing assignments in the middle of expressions; trying to compile the corresponding code will give you a syntax error.)
avatar
dtgreene: Notice that the expression in the if statement is an assignment, not a comparison?
Ah, right, I didn't notice the single equality sign. Yea, JS has this problem as well, I just checked.
low rated
The circus is in town and Alaric.us is the Ring Master with free tickets.
avatar
Themken: Cheap or old laptops may have lower.
avatar
Mr.Mumbles: As well as cheap new laptops. There are still plenty with 1366 x 768 resolution.
Please reread what I wrote :-) There is an 'or' in there.
avatar
Tauto: The circus is in town and Alaric.us is the Ring Master with free tickets.
Alaric hates me as much as you do.

I think you two would be best buds.
avatar
dtgreene: (By the way, the game being Steam only is a dealbreaker for me, as well as the game requiring a higher resolution than my monitor's 1280x1024.)
Obviously it's already a no go because of Steam but I think it should work ok on a vertical res of 1024, the window definitely doesn't use the entire height of my 1080p screen. I would guess it falls short by at least 56 pixels but I can't be sure.
I guess that's not really relevant if it's already a no-go for you.
avatar
Themken: Cheap or old laptops may have lower.
avatar
Mr.Mumbles: As well as cheap new laptops. There are still plenty with 1366 x 768 resolution.
Yeah, I think 768 is probably the lowest vertical resolution people should be still accounting for, or perhaps 720 (although most 720p TVs and monitors actually use a 1366x768 panel, which I find somewhat perplexing).
Post edited May 14, 2018 by SirPrimalform
avatar
Tauto: The circus is in town and Alaric.us is the Ring Master with free tickets.
avatar
tinyE: Alaric hates me as much as you do.

I think you two would be best buds.
Alaric is all love.
avatar
Tauto: Alaric is all love.
Hmm... what?
low rated
avatar
Tauto: Alaric is all love.
avatar
Alaric.us: Hmm... what?
It is trying to bait and how was the tour?
WAIT
You have me JerkMuted but not Tauto!? XD

Oh god. I knew I was bad but not that bad. :P
I haven't felt this low since I was a kid and my parents had to tie a pork chop around my neck to get the dog to play with me.
avatar
Alaric.us: Hmm... what?
avatar
Tauto: It is trying to bait and how was the tour?
The tour is going great, Prague is lovely! What is the "it" you are talking about?
low rated
avatar
Tauto: It is trying to bait and how was the tour?
avatar
Alaric.us: The tour is going great, Prague is lovely! What is the "it" you are talking about?
The ''it'' we were talking about before.
avatar
Alaric.us: The tour is going great, Prague is lovely! What is the "it" you are talking about?
avatar
Tauto: The ''it'' we were talking about before.
/sigh

Poor, guy. I completely removed him from my life two years ago, but it seems I am very much a part of his life to this day. People tell me he is always the first to post in my threads and just can't seem to let go, like a bitter ex girlfriend. :( I certainly didn't intend to inflict any sort of long term psychological damage when I blocked him, but ironically his obsession with me is best proof of the necessity of that action.
low rated
avatar
Tauto: The ''it'' we were talking about before.
avatar
Alaric.us: /sigh

Poor, guy. I completely removed him from my life two years ago, but it seems I am very much a part of his life to this day. People tell me he is always the first to post in my threads and just can't seem to let go, like a bitter ex girlfriend. :( I certainly didn't intend to inflict any sort of long term psychological damage when I blocked him, but ironically his obsession with me is best proof of the necessity of that action.
Yep,first to post and apply s***.This has made my day,I'm laughing that hard:)
avatar
Tauto: Yep,first to post and apply s***.This has made my day,I'm laughing that hard:)
It's hard to feel much aside from pity at this stage. I hope he recovers one day.

That said, let's leave him be and stop derailing the thread.