Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!snorkelwacker.mit.edu!hsdndev!cmcl2!adm!news From: Dave_Wyble.wbst147@xerox.com Newsgroups: comp.lang.pascal Subject: Re: need a little flexibility Message-ID: <26672@adm.brl.mil> Date: 25 Apr 91 12:53:04 GMT Sender: news@adm.brl.mil Lines: 14 >And a variant record requires an exhaustive listing of it's fields right?< I don't think so. Look in the TP manual and see how the type Regs is declared in the DOS unit. The variant record is set up so all the fields that may be variant (AX -> AH AL etc) are at the beginning of the declaration. The rest of the registers (ie: the ones that can't be split: SI, DI etc) are at the end, and are *not* repeated in the second part of the declaration. Seems to me you could just cluster the variant parts in the beginning, unless ALL of your fields may be used as bytes or words. If you need all of them to be variant, you are right, it might get exhausting. Dave Wyble drw.wbst147@xerox.com