Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ames!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Addressing struct without -> Message-ID: <14822@smoke.brl.mil> Date: 11 Jan 91 22:48:17 GMT References: <91010.084408NIBMSCM@NDSUVM1.BITNET> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 14 In article <91010.084408NIBMSCM@NDSUVM1.BITNET> NIBMSCM@NDSUVM1.BITNET writes: >... the 'using' keyword ... > Could anyone out there tell me how I can implement this in 'C' or >which language products have added such a function ... Since any such extension would be highly nonstandard, you really ought to avoid using it. It would provide no new functionality anyway, but merely cater to your Pascal-based expectations. C is not Pascal; it is better. The whole "using" approach is insufficiently general, since in C different structure types can have the same member names, and often do in practical source code. Thus some form of disambiguation is needed anyway, and this is already conveniently provided by use of the member selection operators . and ->. My suggestion is to learn to exploit this rather than fight it.