Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!munnari.oz.au!metro!usage.csd.unsw.oz.au!cad0.arch.unsw.oz.au From: steve@cad0.arch.unsw.oz.au (Stephen Peter) Newsgroups: comp.lang.pascal Subject: Re: need dynamic array on heap Message-ID: <1356@usage.csd.unsw.oz.au> Date: 13 Apr 91 12:30:23 GMT References: <1991Apr12.234843.9031@ux1.cso.uiuc.edu> Sender: news@usage.csd.unsw.oz.au Organization: Faculty of Architecture, UNSW, Australia Lines: 28 In article <1991Apr12.234843.9031@ux1.cso.uiuc.edu> amead@s.psych.uiuc.edu (alan mead) writes: >I want to put aside a chunk of the heap and then index it by byte like . . . >But I get > > Buff[1]^ := 2; > ^ Invalid qualifier > >so does anyone know, is this sort of thing possible? Can you do this >easily in C? > Try addressing the structure as a pointer to an array: Buff^[1] := 2; which should work. >-alan mead : amead@s.psych.uiuc.edu Stephen. -- _--_|\ steve@cad0.arch.unsw.oz.au / \ Stephen Peter or steve@keystone.arch.unsw.oz.au \_.--._/<------------------------------------------------------------------- v School of Architecture, University of New South Wales, Australia