Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror

Comment Re:Obviously... (Score 1) 83

I absolutely agree with your claim that languages should abstract away machine-level details.

However, representing bit-vectors as integers is an extremely common practice in C and other languages, and any competent programmer will recognize this idiom. (See for example the "flags" argument for the UNIX open(2) call.) With a little bit of (tasteful) preprocessor use, you can basically get the same sort of code as the example in your initial post. Finally, while you must put in some extra effort if data are to be shared between machines of different architectures, this practice is basically portable as well.
Apple

Journal Journal: PlayerPro registration code generator

/* ***************
The source for PlayerPro was released, but you still need a registration code to run the binary. For those of you who are too lazy to do so yourselves, here's a C program that generated a working registration code for me, mostly ripped from Registration.c in the PlayerPro source. (however, there are definitions for some lingering Carbon-isms)

Slashdot Top Deals

The algorithm for finding the longest path in a graph is NP-complete. For you systems people, that means it's *real slow*. -- Bart Miller

Working...