Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!icdoc!tgould!dbh From: dbh@doc.ic.ac.uk (Denis Howe) Newsgroups: comp.sys.acorn Subject: Re: Languages Message-ID: Date: 20 Feb 91 14:55:50 GMT References: <1991Feb12.092955.19872@decuk.uvo.dec.com> Sender: news@doc.ic.ac.uk Organization: Dept. of Computing, Imperial College, London, UK Lines: 26 In article <1991Feb12.092955.19872@decuk.uvo.dec.com> goodwin@oyez.enet.dec.com (Pete Goodwin) writes: >BASIC is not a fully structured language. It has IF-THEN-ELSE-ENDIF, CASE etc. >but it's missing the other part of structured languages - structured data >types. > >Whenever data structures are manipulated in BASIC you'll see code like: > >buffer%!0 = 1 >buffer%!4 = 12 >buffer%!8 = 14 > >which is not very readable. In C you would have an include file giving names for the constants. Does anybody have an equivalent for WIMP programs in BASIC? All you need is lots of assignment statements but you might also want something like C's preprocessor to replace the symbolic names with numbers for a smaller, faster production version. It's not structured data types but it would help to make WIMP programs in BASIC a lot more readable. -- Denis Howe C C C C +44 (71) 589 5111 x5064 C C N=N C C DiazaBicycloHexene ? C C C C