Well, there's a dice game called "craps" that has been around since before Thomas Crapper's time (I think). I don't yet know of any game called "shits" (and I don't really want to know either!)
I remember reading 20 years ago about how the eastern edge of Africa was going to break off from the rest, over the next few dozen million years. So, I guess the answer is: lots of geologists:)
Sorry, something I forgot to mention in my initial post:
But from an OOP standpoint, it's impossible to create a datastructure that "knows" you're using the [] operator twice. So if you overload the [] operator in an array structure, to get multi-dimensional arrays, you have to nest single dimensions arrays, which is almost always inefficient
This is crap. Here's a quick example (without bounds-checking, exception-safety, or const-correctless, for the sake of clearly illustrating my point):
int &operator()(int y, int x) { return mem[y * cols + x]; }
int *operator[](int y) { return &mem[y * cols]; }
private:
int rows, cols, *mem; };
int main() {
SmartArray sa(2, 4);
sa(1, 2) = 12;
std::cout << "sa[1,2] is " << sa[1][2] << std::endl; }
You can even generalise this to any number of dimensions by using a template with the number of dimensions as a parameter, and a helper class instead of "int *" as the return type of operator[] .
That's the whole point of the complaint. Inconsistentcy between [] and ().
Well, a comma is the comma operator everywhere, except when it's a separator in a list (specifically: argument-list, formal-parameter-list, initializer-list).
Perhaps it would have been better originally to use a different symbol for the comma operator from the list separator. But it's too late now, as both usages are very widespread.
Currently there's no such thing as an "array index list", because C++ does not have true multi-dimensional arrays. If we were to add the index-list syntax I think it would just add to the confusion (most casual programmers already have enough trouble with the interaction between arrays and pointers as it is, without adding complication).
Note: Although the OP was suggesting the array index list only in the context of UDT operator[] functions. But it follows from this that the syntax would also be usable with actual arrays, otherwise we would need context-sensitivity to parse x[a,b] and IMHO that would be a big mistake.
Is calling somebody a "jew" supposed to be an insult or something in your book? If ones calls a human a "human", or an american an "american", isn't this just simply stating the obvious? Calling a person who isn't a jew, a "jew", simply because they find anti-semitic comments offensive, would be an ignorant and silly thing to do. "Human", "american", "chinese" and "jew", neither of these are insults.
Shut up, fag! And what's wrong with Chinese, are you racist?
You can do exactly that -- just write a(12,13) instead of a[12,13]. This is a great counterexample to the GP. Changing the meaning of the comma within square brackets would gain NOTHING and would mean every existing compiler is now wrong.
The existing C array type is bad enough as it is, why make it even more unwieldy by introducing a new variant? C++ is already on the right track: discourage C arrays, and encourage container classes that have things like bounds checking and automatic memory allocation.
The oldest computer I have is a Pentium 266 MMX laptop with 64MB of RAM. Most people would just consider this to be garbage and junk it... I figured I would see what I could salvage out of this dinosaur.
Ouch.. hey stop hammering the stakes in!
Windows would have a hard time running on this low-spec laptop
Hey, my work PC is a P2-266 MMX. It runs windows 2000 just fine, and I compile C++ with it, and even run Firefox (which uses more resources than the compiler).
Windows 95 ran great on a 486-66 with 16Mb RAM. I knew a guy who had a 486SX-25 laptop with and 8Mb ram. *That* laptop did have a hard time running Windows.
The word is LEGO, for heaven's sake. If you look on the bricks themself you will see LEGO printed on each dot. And the box says LEGO. The website is WWW.LEGO.COM . The website refers to the product as LEGO. The article even explains the etymology of the word. Whys does Slashdots adds a strays 'S' to thes ends of thes words? Annoyings isn'ts its?
Well -- that isn't mentioned on the www.slackware.org main page, or in the FAQ, or under 'General Info', or under 'Install Help'. I don't see anything easily accessible on the website that tells you what an acceptable subset of the 4 ISO images would be.
Also, even 640mb is not really feasible for modem users -- why is there no base (sub 100mb) installation, and then download packages via the internet as needed?
I suppose my complaints are with the website, it explains things from the point of view of someone who already knows how to install Slackware, and isn't very enlightening to others. (I'm an experienced user, but not an installer).
Now, the "Install Help" page says you need 2 boot disks as well as CD images. Is that out of date, or has Slackware not moved up to the bootable CD era?
The "Obtaining the Software Sets" page doesn't tell you how to obtain anything, it just has a list of codes.
Someone should make an easy-install guide for people who don't want to download a whole CD in one go, IMHO.
I chose Slackware because I disliked other distributions' bloated installs.
I wanted to install Linux a few months ago. I went to the Slackware website because I remembered it as being fast and un-bloated.
Unfortunately, to install it you have to download FOUR CDs. That's nearly impossible if you don't have broadband.
Last time I installed linux (Debian 2.0), the whole thing was on one disk, and even then I only used a quarter of it at best. Even better, I could just download a 'base' distribution from the website and then download other packages as I need them. And don't try telling me that linux is 4 times more advanced now than it was then. The kernel still fits on a floppy, bash is still bash, cat is still cat, more is still more (or less). If there is some whizzbang window manager that takes up half a CD, I don't want to waste my datacap and time by downloading it.
Slack may be many things, but non-bloaty install is not one of them.
Well, OK so far. But if there is no interest, then banks will not lend anyone money (why would they?). So how will the average person be able to buy a house?
It's very, very simple. People are stupid and lazy.
To refine that a bit: people are lazy. Most people do have the mental capacity to run an alternative browser. But they cannot muster up the effort to kick their brain into gear.
A popup blocker should stop any new windows opening, ie. disable anything that can be done with the window() function. How hard is this? IE claims it has popup blocking in its latest version.
Even with the latest stable Firefox, and popup blocking enabled, I still get popups appearing from time to time.
Well, there's a dice game called "craps" that has been around since before Thomas Crapper's time (I think). I don't yet know of any game called "shits" (and I don't really want to know either!)
.... a Beowulf cluster of these.
It'd be hard to write something worse than the Wikipedia article on C.
I don't have a Britannica membership so I can't read its full entry on C.
What point are you trying to make?
Called "shoot em up" games because you have to shoot up speed or caffeine to stay awake 24/7 so you can get anywhere!
There's 191 teams that all run around the field for months on end with no one scoring or even attempting to score. It's called the UN. ;)
The other teams all try to score, but the USA has a very good goalkeeper.
Who'd have seen that coming?
:)
I remember reading 20 years ago about how the eastern edge of Africa was going to break off from the rest, over the next few dozen million years. So, I guess the answer is: lots of geologists
they have about as much to do with each other as a shoe and a condom (both are pieces of "clothing").
In my case... they both cover a foot
And his name has an uber pronunciation that makes nerds feel smart if they try to say it right
And today, this article appears on Developer.com: "RSS: So Simple with Wisual Basic 2005".
Is that the result of outsourcing VB development to India?
Sorry, something I forgot to mention in my initial post:
But from an OOP standpoint, it's impossible to create a datastructure that "knows" you're using the [] operator twice. So if you overload the [] operator in an array structure, to get multi-dimensional arrays, you have to nest single dimensions arrays, which is almost always inefficient
This is crap. Here's a quick example (without bounds-checking, exception-safety, or const-correctless, for the sake of clearly illustrating my point):
#include <iostream>
struct SmartArray
{
SmartArray(int rows, int cols)
: rows(rows), cols(cols), mem( new int[rows * cols] ) {}
~SmartArray() { delete [] mem; }
int &operator()(int y, int x) { return mem[y * cols + x]; }
int *operator[](int y) { return &mem[y * cols]; }
private:
int rows, cols, *mem;
};
int main()
{
SmartArray sa(2, 4);
sa(1, 2) = 12;
std::cout << "sa[1,2] is " << sa[1][2] << std::endl;
}
You can even generalise this to any number of dimensions by
using a template with the number of dimensions as a parameter,
and a helper class instead of "int *" as the return type of
operator[] .
That's the whole point of the complaint. Inconsistentcy between [] and ().
Well, a comma is the comma operator everywhere, except when it's a separator in a list (specifically: argument-list, formal-parameter-list, initializer-list).
Perhaps it would have been better originally to use a different symbol for the comma operator from the list separator. But it's too late now, as both usages are very widespread.
Currently there's no such thing as an "array index list", because C++ does not have true multi-dimensional arrays. If we were to add the index-list syntax I think it would just add to the confusion (most casual programmers already have enough trouble with the interaction between arrays and pointers as it is, without adding complication).
Note: Although the OP was suggesting the array index list only in the context of UDT operator[] functions. But it follows from this that the syntax would also be usable with actual arrays, otherwise we would need context-sensitivity to parse x[a,b] and IMHO that would be a big mistake.
Is calling somebody a "jew" supposed to be an insult or something in your book? If ones calls a human a "human", or an american an "american", isn't this just simply stating the obvious? Calling a person who isn't a jew, a "jew", simply because they find anti-semitic comments offensive, would be an ignorant and silly thing to do. "Human", "american", "chinese" and "jew", neither of these are insults.
Shut up, fag! And what's wrong with Chinese, are you racist?
You can do exactly that -- just write a(12,13) instead of a[12,13].
This is a great counterexample to the GP. Changing the meaning
of the comma within square brackets would gain NOTHING and would
mean every existing compiler is now wrong.
The existing C array type is bad enough as it is, why make it
even more unwieldy by introducing a new variant? C++ is already
on the right track: discourage C arrays, and encourage container
classes that have things like bounds checking and automatic
memory allocation.
The oldest computer I have is a Pentium 266 MMX laptop with 64MB of RAM. Most people would just consider this to be garbage and junk it ... I figured I would see what I could salvage out of this dinosaur.
Ouch.. hey stop hammering the stakes in!
Windows would have a hard time running on this low-spec laptop
Hey, my work PC is a P2-266 MMX. It runs windows 2000 just fine, and I compile C++ with it, and even run Firefox (which uses more resources than the compiler).
Windows 95 ran great on a 486-66 with 16Mb RAM. I knew a guy who had a 486SX-25 laptop with and 8Mb ram. *That* laptop did have a hard time running Windows.
Hey, the Mountain Dew on my desk in front of me says "Mountain Dew" right on the can. I guess I can't talk about drinking two Mountain Dews, can I?
Sorry. My baaaaaaaaad.
The word is LEGO, for heaven's sake.
If you look on the bricks themself you will see LEGO printed on each dot. And the box says LEGO.
The website is WWW.LEGO.COM .
The website refers to the product as LEGO.
The article even explains the etymology of the word.
Whys does Slashdots adds a strays 'S' to thes ends of thes words? Annoyings isn'ts its?
Henry Ford made a car from hemp.
I volunteer myself to act as the catalytic converter
Well -- that isn't mentioned on the www.slackware.org main page, or in the FAQ, or under 'General Info', or under 'Install Help'. I don't see anything easily accessible on the website that tells you what an acceptable subset of the 4 ISO images would be.
Also, even 640mb is not really feasible for modem users -- why is there no base (sub 100mb) installation, and then download packages via the internet as needed?
I suppose my complaints are with the website, it explains things from the point of view of someone who already knows how to install Slackware, and isn't very enlightening to others. (I'm an experienced user, but not an installer).
Now, the "Install Help" page says you need 2 boot disks as well as CD images. Is that out of date, or has Slackware not moved up to the bootable CD era?
The "Obtaining the Software Sets" page doesn't tell you how to obtain anything, it just has a list of codes.
Someone should make an easy-install guide for people who don't want to download a whole CD in one go, IMHO.
I chose Slackware because I disliked other distributions' bloated installs.
I wanted to install Linux a few months ago. I went to the Slackware website because I remembered it as being fast and un-bloated.
Unfortunately, to install it you have to download FOUR CDs.
That's nearly impossible if you don't have broadband.
Last time I installed linux (Debian 2.0), the whole thing was on one disk, and even then I only used a quarter of it at best. Even better, I could just download a 'base' distribution from the website and then download other packages as I need them.
And don't try telling me that linux is 4 times more advanced now than it was then. The kernel still fits on a floppy, bash is still bash, cat is still cat, more is still more (or less). If there is some whizzbang window manager that takes up half a CD, I don't want to waste my datacap and time by downloading it.
Slack may be many things, but non-bloaty install is not one of them.
Everybody knows that Jesus 'rode into town' on a Harley Davidson.
No, that was Moses burning up the desert in his Triumph.
Well, OK so far. But if there is no interest, then banks will
not lend anyone money (why would they?). So how will the average
person be able to buy a house?
(Obviously, IANAE)
It's very, very simple. People are stupid and lazy.
To refine that a bit: people are lazy.
Most people do have the mental capacity to run an alternative browser. But they cannot muster up the effort to kick their brain into gear.
Didn't anyone see The Postman
Sorry, the total costner of 0wnership was too high.
A popup blocker should stop any new windows opening, ie. disable anything that can be done with the window() function. How hard is this? IE claims it has popup blocking in its latest version.
Even with the latest stable Firefox, and popup blocking enabled, I still get popups appearing from time to time.
Non-sequitur, IMHO. Javascript is a great tool for user interface design.
The problem is that it should not be possible to execute arbitrary code that has nothing to do with the user interface!