Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site opus.UUCP Path: utzoo!watmath!clyde!burl!hou3c!hocda!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!hao!cires!nbires!opus!rcd From: rcd@opus.UUCP (Dick Dunn) Newsgroups: net.lang.c Subject: Re: Register functions ? (strange constructs) Message-ID: <811@opus.UUCP> Date: Mon, 17-Sep-84 21:17:01 EDT Article-I.D.: opus.811 Posted: Mon Sep 17 21:17:01 1984 Date-Received: Tue, 25-Sep-84 05:27:48 EDT References: <1202@elsie.UUCP> Organization: NBI, Boulder Lines: 20 >As long as we're proposing strange constructs, how about unnamed variables? >For example, at the top level: > > char[] = "This is a string"; That's hardly strange. Actually, the form of a type name without any associated list of variables occurs in other languages (and I believe in the emerging C standard) in a formal parameter list. I've also seen it used for alignment information in a structure--a structure field which is given a type but no name occupies the amount of storage required for the type but is otherwise inaccessible--e.g., in C-ish syntax you might have: struct { short bletch; int garg:3; int :2; /* unused and inaccessible space */ int blip:3; } -- Dick Dunn {hao,ucbvax,allegra}!nbires!rcd (303)444-5710 x3086 ...Never offend with style when you can offend with substance.