X3J11 Pleasanton meeting summary

Peter da Silva peter at ficc.ferranti.com
Sun Oct 7 10:39:43 AEST 1990


In article <1990Oct4.233557.28571 at watdragon.waterloo.edu> ccplumb at spurge.uwaterloo.ca (Colin Plumb) writes:
> I have to agree with Henry, though, in saying that "needed" is hoplessly
> vague.  Given an incomplete type Foo, here are the things I can imagine
> doing with it:

> extern Foo variable;
...

Also:

extern Foo *variable;
Foo *variable;
{ Foo *variable; }
Foo *function(...);
Foo *function(...){...}
extern Foo *variable[];
Foo *variable[];
sizeof(Foo *);

All of which should probably be legal... unless pointers to structures
can vary in size, or you dereference !variable! or the return value of
!function!. The latter two can be checked out, but how about varying
size pointers to structures (eg, !struct {char c};! having the same align
restrictions as !char! and requiring a longer pointer than !int *!)?
-- 
Peter da Silva.   `-_-'
+1 713 274 5180.   'U`
peter at ferranti.com



More information about the Comp.std.c mailing list