Addressing struct without ->

Henry Spencer henry at zoo.toronto.edu
Sat Jan 12 04:50:47 AEST 1991


In article <91010.084408NIBMSCM at NDSUVM1.BITNET> NIBMSCM at NDSUVM1.BITNET writes:
>with some other languages, such as Pascal, I had the capability to use
>the 'using' keyword, giving the address of a structure and then address
>the elements of that structure without the necessity of using the
>ptr->element notation (could simply use element).
>  Could anyone out there tell me how I can implement this in 'C' ...

Can't be done (in any convenient way) in standard C.
-- 
If the Space Shuttle was the answer,   | Henry Spencer at U of Toronto Zoology
what was the question?                 |  henry at zoo.toronto.edu   utzoo!henry



More information about the Comp.lang.c mailing list