Path: news.daimi.aau.dk!news.uni-c.dk!uninett.no!news-feed.inet.tele.dk!newsfeed.direct.ca!news-peer.gsl.net!jupiter.nic.dtag.de!RRZ.Uni-Koeln.DE!news.rhrz.uni-bonn.de!news.chemietechnik.uni-dortmund.de!Uni-Dortmund.DE!Dortmund.Germany.EU.net!Informatik.Uni-Dortmund.DE!ls1ethermac7.informatik.uni-dortmund.de!user From: maalex00@marvin.informatik.uni-dortmund.de (Markus Alex) Newsgroups: comp.lang.beta Subject: Re: WHY no multi-dimensional arrays? Date: Thu, 05 Jun 1997 11:00:53 +0200 Organization: CS Department, University of Dortmund, Germany Lines: 37 Message-ID: References: <338E7015.6B89@rz.ruhr-uni-bochum.de> NNTP-Posting-Host: ls1ethermac7.informatik.uni-dortmund.de Xref: news.daimi.aau.dk comp.lang.beta:11128 In article <338E7015.6B89@rz.ruhr-uni-bochum.de>, Joerg Digulla wrote: > Greetings! Hello! > Does anybody know why there are no multi-dimensional arrays in BETA? Not me ... > I know that I could write some pattern simulating such arrays, but no > technique I can think of has the striking elegance of a definition like, > e.g., > > (# a: [x][y]@integer; > . > . > a[1][2] -> ... > . > . #) But you can do it with elegance and without writing your own new pattern. This way is described in the "Mjølner BETA System Tutorial" (You can download it from http://www.mjolner.dk/Manuals/r4.0.3/#tutorials). You then can read on page 28f: "It is not possible to make multidimensional repetitions using the current version of the Mjølner BETA System. However, multidimensional repetitions are easily constructed, e.g. a repetition with dimension NxM can be declared like: mul_table: [N*M] @Integer;" I hope this hint will help you ... Markus