Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!sm.unisys.com!csun!csuna!abcscnuk From: abcscnuk@csuna.UUCP (Naoto Kimura) Newsgroups: comp.lang.pascal Subject: Re: Enumerated types in TP40 Message-ID: <1667@csuna.UUCP> Date: 13 Feb 89 15:46:58 GMT References: <363@lafcol.UUCP> <950016@hpcllmr.HP.COM> <7250@paris.ics.uci.edu> Reply-To: abcscnuk@csuna.UUCP (Naoto Kimura) Distribution: usa Organization: California State University, Northridge Lines: 19 In article <7250@paris.ics.uci.edu> Alastair Milne writes: > ... (text deleted) ... > I have yet to encounter a way dynamically to determine the number of > values in an enumeration, short of having a dialect which provides a > MAX function. PASCAL/VS has functions (really more like a inline macro like sizeof) that returns the maximum and minimum values of a type. They were called something like LoValue() and HiValue(). Another thing that it had a method by which you can get the upper and lower bounds of an array. > ... (text deleted) ... > Alastair Milne //-n-\\ Naoto Kimura _____---=======---_____ (csun!csuna!abcscnuk) ====____\ /.. ..\ /____==== // ---\__O__/--- \\ Enterprise... Surrender or we'll \_\ /_/ send back your *&^$% tribbles !!