Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!orion.cf.uci.edu!uci-ics!venera.isi.edu!aero!sm.unisys.com!csun!csuna!abcscnuk From: abcscnuk@csuna.csun.edu (Naoto Kimura) Newsgroups: comp.lang.pascal Subject: Re: An ISO Pascal question... Message-ID: <1752@csuna.csun.edu> Date: 12 Mar 89 03:57:02 GMT References: <18654@adm.BRL.MIL> <2824@kalliope.rice.edu> Reply-To: abcscnuk@csuna.csun.edu (Naoto Kimura) Organization: CSU Northridge Lines: 30 In article <2824@kalliope.rice.edu> mootaz@titan.rice.edu (Elmootazbellah Nabil Elnozahy) writes: ]Given the following piece of code, can anybody familiar with the ISO ]standard tell me if it is legal or not: ] ] ]Type ] T = real; ] R = Record ] T: integer; ^^^^^^^^^^ T is now a field of type 'integer' in the record type 'R' this scope. ] D: T; ^ You'll run into trouple here, because 'T' is a field of 'R' ] end; ] ] ... (declaration deleted, had same problem) ... ] ... (text deleted) ... I don't have the Doug Cooper book (I know, I know, shame on me for not having J&W) with me now, since I've lent it to someone, but as far as I know it is fine to have the field 'T' of type integer, but within the scope of the record type 'R', 'T' is a field of type integer, not the type 'T'. //-n-\\ Naoto Kimura _____---=======---_____ (abcscnuk@csuna.csun.edu) ====____\ /.. ..\ /____==== // ---\__O__/--- \\ Enterprise... Surrender or we'll \_\ /_/ send back your *&^$% tribbles !!