Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!aramis.rutgers.edu!paul.rutgers.edu!njin!uupsi!sunic!dkuug!diku!damm From: damm@diku.dk (Kristian Damm Jensen) Newsgroups: comp.lang.pascal Subject: Re: arrays Message-ID: <1991Jun20.152036.1161@odin.diku.dk> Date: 20 Jun 91 15:20:36 GMT References: <1991Jun18.175558.1667@odin.corp.sgi.com> Sender: damm@rimfaxe.diku.dk Organization: Department of Computer Science, U of Copenhagen Lines: 44 avila@swinger.csd.sgi.com (Richard Avila) writes: >In pascal on the SGI box a user wanted to create >an array type such that at compile time the >bounds ( or size of the array ) is not known. >Then at runtime the bounds can be assigned >and the variable is created. >In Ada this is call an unconstrained array. >Does our Pascal have anything like this? No. Subject: Re: arrays Distribution: world References: <1991Jun18.175558.1667@odin.corp.sgi.com> avila@swinger.csd.sgi.com (Richard Avila) writes: >In pascal on the SGI box a user wanted to create >an array type such that at compile time the >bounds ( or size of the array ) is not known. >Then at runtime the bounds can be assigned >and the variable is created. >In Ada this is call an unconstrained array. >Does our Pascal have anything like this? No. You have to create this by yourself using pointers, since pointers are the only dynamic types in pascal. Mind you: I'm talking standard-Pascal. If you do not care about portability some compiler might support a like feature. -- Kristian Damm Jensen (damm@freja.diku.dk) "Life is like a sewer - what you get out of it depends on what you put into it" - Tom Lehrer