Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!julius.cs.uiuc.edu!wuarchive!uunet!pilchuck!dataio!fnx!nazgul!bright From: bright@nazgul.UUCP (Walter Bright) Newsgroups: comp.lang.c Subject: Re: Addressing struct without -> Message-ID: <227@nazgul.UUCP> Date: 16 Jan 91 17:44:31 GMT References: <91010.084408NIBMSCM@NDSUVM1.BITNET> Reply-To: bright@nazgul.UUCP (Walter Bright) Organization: Zortech, Seattle Lines: 13 In article <91010.084408NIBMSCM@NDSUVM1.BITNET> NIBMSCM@NDSUVM1.BITNET writes: / In working with some of the more common 'C' packages, I've found /one limiting factor that seems to come back and haunt me. In working /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' or /which language products have added such a function (currently using /the bundled 'C' on SunOS). Thanks in advance... C++ currently has a similar feature, when if you are in a member function of class X then you can access members of class X without specifying X->.