Undelivered mail
MAILER%ALASKA.BITNET at CUNYVM.CUNY.EDU
MAILER%ALASKA.BITNET at CUNYVM.CUNY.EDU
Sun Mar 13 07:06:46 AEST 1988
Subject: syntactical convenience
[Non-Deliverable: User does not exist or has never logged on]
Reply-To: Info-C at BRL.ARPA
Received: From UWAVM(MAILER) by ALASKA with Jnet id 8379
for SXJVK at ALASKA; Sat, 12 Mar 88 11:35 AST
Received: by UWAVM (Mailer X1.25) id 5692; Sat, 12 Mar 88 12:33:49 PST
Date: Fri, 11 Mar 88 19:07:00 GMT
Reply-To: Info-C at BRL.ARPA
Sender: Info-C List <INFO-C at NDSUVM1>
From: Bear with me <kruger at whyvax.dec.COM>
Subject: syntactical convenience
Comments: To: info-c at BRL-SMOKE.arpa
To: Vic Kapella <SXJVK at ALASKA>
It's minor either way, but syntactically, it would be nice if you could
define a bunch of same-sized bitfields in one shot. For example:
struct
{
bit(1) x,y,z;
}
The current system does not convey the meaning as clearly, and is longer and
more obnoxious. Of course, it's only an inconvenience either way.
A more important addition, and a surprising lack in the standard, is the
preprocessor, which doesn't allow inserting preprocessing directives. Our
standards rep had no good arguments against adding the capability, which is
no harder to implement and breaks no programs. He simply said it was unlikely
to change at that point -- not very satisfying.
An example of what I am referring to is:
#define TBD #error
/* this code is not complete yet */
TBD
Of course, this is not the only use of this feature. It is even more surprising
that recursive definitions are not permitted -- the line has to be rescanned
anyway, and it's just as much work. Ah well....
dov
Disclaimer: Your mileage may vary. Void where prohibited. Weight is before
cooking. Digital is not to be held responsible for my madness.
More information about the Comp.lang.c
mailing list