Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!amdahl!pacbell!ditka!qiclab!m2xenix!randy From: randy@m2xenix.UUCP (Randy Bush) Newsgroups: comp.lang.pascal Subject: Re: An ISO Pascal question... Message-ID: <216@m2xenix.UUCP> Date: 14 Mar 89 20:12:07 GMT References: <18654@adm.BRL.MIL> <2824@kalliope.rice.edu> Reply-To: randy@m2xenix.UUCP (Randy Bush) Organization: Oregon Software, Portland Oregon US Lines: 32 mootaz@titan.rice.edu (Elmootazbellah Nabil Elnozahy) asks if the following is legal Pascal: T = real; R = Record T: integer; D: T; end; B = Record T: integer; C: Record D: T; end; end; To the best of my knowledge, the above fragment is quite correct. [ Being somewhat prudent, I also looked it up. ] The fieldnames are in a separate 'region', and thus do not conflict with the name of the type T. Of course, this is not the clearest possible programming style, but we all knew that. I would be interested in knowing of compilers which do not accept this fragment, and of those which do. By net mail please, of course, and I will summarize if it is enlightening. randy -- { mcvax!uunet!oresoft, tektronix!percival!qiclab } !m2xenix!randy Randy Bush