Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



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

...though his invention worked superbly -- his theory was a crock of sewage from beginning to end. -- Vernor Vinge, "The Peace War"

Working...