tgt: From reading your posts and responses, it sounds to me like you have an eating disorder, and that you probably do not need to lose weight. What is your height and weight, if you don't mind me asking?
I stumbled upon Johnny Chung Lee's page some time last month. Pretty fun stuff, I must agree. I whipped up my own Python + win32 package. It will end up on my homepage sooner or later.
Not everyone feels this way about calculus. Not everyone feels this way about all of the intricate workings of a modern PC.
There are plenty of people, many of them contributors to this forum, who find all manner of challenging subjects both interesting and enjoyable. I suspect you are the...
It's actually very possible to understand everything that a modern computer and OS does. It just takes some time and commitment, and less than you would think. But it won't come without some effort, just like anything worth while.
This is also incorrect. The .bss section IS the uninitialized data section. This section has the IMAGE_SCN_CNT_UNINITIALIZED_DATA bit set in the Characteristics field of the section header. I've implemented PE-COFF executable loaders and object file linkers on several platforms. Here's the...
That's actually a very human mindset. No one wants to port an ill featured editor to Linux for you. There's no benefit for them, since there are perfectly fine editors available. Perhaps if you paid someone, they would port EDIT for you, but you really can't expect something for nothing. People...
I do see the point you are trying to make. However, like I said before, the bitwise operators are also used for non-short-circuit logical operations, which mandates the precedence they have.
And although you may feel like you example is the common case, it really isn't. If you feel up to it...
I know you can't use both static and extern at the same time. That would be like saying "hey there is this variable defined in another file, with local linkage, so I can't use it."
Let's turn to an example:
/* A: *declare* to the compiler that there will be an int variable named foo, in...
Hmm, I think you are confusing can't and don't want to. If you want to port EDIT to a UNIX, then go ahead. You'll probably have to learn C if you can get the original source.
If you bothered to look, you would notice a simple editor called PICO, which has many similarities to EDIT, and isn't...
You are incorrect on both counts.
The keyword 'extern' is not the opposite of static, though it may seem that way to new C programmers. It actually instructs the compiler that the specified symbol will be defined in another scope, usually another file. Declaring a variable 'extern' does not...
Good one.
Or if you want that last bit of efficiency:
import os
from os.path import join
for root, dirs, files in os.walk('/my/path/here'):
filename = join(root, name)
for line in file(filename):
if pattern in line:
print "File", filename, "matched."
Just iterate the...
No, those all mean the same thing; with the exception of the static member function (method), which is a very natural extension that keeps in line with C++'s object oriented features.
The keyword 'static' simply specifies that the compiler reserve space for the item in either the initialized...
This is a bad idea that violates the very essence of C. Making true/false values their own type with reserved symbols is a contrivance that C intentionally avoids. The "0 is false, everything else is true" is leveraged extensively by good C programmers.
Here are some examples to illustrate...