PLEX86  x86- Virtual Machine (VM) Program
 CVS  |  Mailing List  |  Download  |  Newsgroups

Where should the type information be 147


Your Ad Here

Your Ad Here

This is a feature with C, not a bug. In C, just as with many buttemblers, and, or, xor and not are used in arithmetic roles in addition to roles in logic. I, for one, use both. The basic int-types are also similar, so a char is mostly just a very small int.

The common mapping of these roles is part of the power of C. It is an integral part of the language, and and important part of it's nature. Remove it, and map in a bool; and you may have this "q" langiage. But it is not C anymore.

I use this a lot in code that fiddle bits. I use &,,^.~ alot, and I use them very distincly from &&, etc. I find this a natural part of the language; and boolean algebra can be very powerful in the right places.

But this is not C anymore. Boolean algebra is defined as integer operations. It sounds a little weird at first, but has it's place.

It seems you want C to perform a very differnt function to what it is designed to do. This may actually apply to a majority of programmers; and this "q" language may warrent further discussion. C-like, but safe and with stronger typing would fill an important niche.

-- mrr

Where should the type information be 148
Morten, et al, There seems to be a break in communication here, and I am not sure where it is. I am NOT proposing eliminating any operators from C, only that you explicitely cast...



Your Ad Here

List | Previous | Next

Where should the type information be 148

Alt Folklore Computers from Newsgroups

The #1 Usenet Provider on the Internet

Where should the type information be 146