From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b50bc6538a649497 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: constants v variables (was Re: if statements) Date: 2000/11/09 Message-ID: <8ufcu9$o97$1@nnrp1.deja.com>#1/1 X-Deja-AN: 691816169 References: <3A02CED4.520C2768@brighton.ac.uk> <3A078B6F.D34B024B@erols.com> <8ua3m1$bru$1@nnrp1.deja.com> <3A09A39F.2822C01B@cepsz.unizar.es> <8udce8$1qi$1@nnrp1.deja.com> <3a0a6f6c$1@pull.gecm.com> X-Http-Proxy: 1.0 x59.deja.com:80 (Squid/1.1.22) for client 205.232.38.240 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Nov 09 23:45:15 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-11-09T00:00:00+00:00 List-Id: In article , Robert A Duff wrote: > Me, too. IMHO, constant should be the *default*, and you > should have to say "var" or something to declare a variable; > then people would be less likely to make this mistake. In Algol-68, we make a constant by doing int a = 32; and an initialized variable by int a := 32; (the latter is a short hand for ref int a = loc int := 32; and there are those who think the shorthand should not have been permitted (it was there to make things easier for Fortran programmers :-) Sent via Deja.com http://www.deja.com/ Before you buy.