🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.pascal
Article #3

Re: HELP! PROBLEM WITH CONSTANT RECORD DECLARATION!!!

#3
From: feardotcom
Date: Thu, 19 Feb 2004 10:42
87 lines
4834 bytes
"Amit Layman" <amitlay77@hotmail.com> wrote in message
news:c0su90$5c3$1@news.iucc.ac.il...
> Hi!
>
> I'm trying to define a constant record this way:
>
> type
>   TPhoneme = record
>       phoneme: char;
>       features: array [1..13] of integer;
>       isvowel: boolean;
>   end;
>
>   TPhonemes = array [1..24] of TPhoneme;
>
> const
>    PHONEMES: TPhonemes =
>    (
>    (phoneme: 'i'; features: ( 1, -1,  1, -1, -1, -1, -1, -1,  1,  0,  0,
0,
> 0 ); isvowel: true),
>    (phoneme: 'e'; features: ( 1, -1, -1, -1, -1, -1, -1, -1,  1,  0,  0,
0,
> 0 ); isvowel: true),
>    (phoneme: 'a'; features: ( 1, -1, -1, 1,  1, -1, -1, -1,  1, 0,  0,  0,
> 0 ); isvowel: true),
>    (phoneme: 'u'; features: ( 1, -1,  1, 1, -1, -1, -1,  1, -1, 0,  0,  0,
> 0 ); isvowel: true),
>    (phoneme: 'o'; features: ( 1, -1, -1, 1, -1, -1, -1,  1,  1,  0,  0,
0,
> 0 ); isvowel: true),
>    (phoneme: 'y'; features: (-1, -1,  1, -1, -1, -1, -1, -1, -1, 0,  0,
0,
> 0 ); isvowel: false),
>    (phoneme: 'r'; features: ( 1,  1, -1, -1, -1, -1, 1,  0,  0, 1,
>  1, -1, -1 ); isvowel: false),
>    (phoneme: 'l'; features: ( 1,  1, -1, -1, -1,  1, 1,  0,  0, 1,
>  1, -1, -1 ); isvowel: false),
>    (phoneme: 'h'; features: (-1, -1, -1, -1,  1, -1, -1,  0,  0, -1,
>  1, -1, -1 ); isvowel: false),
>    (phoneme: 'p'; features: (-1,  1, -1, -1, -1,  1, -1,  0,
>  0, -1, -1, -1, -1 ); isvowel: false),
>    (phoneme: 'b'; features: (-1,  1, -1, -1, -1,  1, -1,  0,  0,
> 1, -1, -1, -1 ); isvowel: false),
>    (phoneme: 't'; features: (-1,  1, -1, -1, -1,  1, 1,  0,
>  0, -1, -1, -1, -1 ); isvowel: false),
>    (phoneme: 'd'; features: (-1,  1, -1, -1, -1,  1, 1,  0,  0,
> 1, -1, -1, -1 ); isvowel: false),
>    (phoneme: 'k'; features: (-1,  1,  1, 1, -1, -1, -1, -1,
>  0, -1, -1, -1, -1 ); isvowel: false),
>    (phoneme: 'g'; features: (-1,  1,  1, 1, -1, -1, -1, -1,  0,
> 1, -1, -1, -1 ); isvowel: false),
>    (phoneme: 'f'; features: (-1,  1, -1, -1, -1,  1, -1,  0,  0, -1,
 1, -1,
> 1 ); isvowel: false),
>    (phoneme: 'v'; features: (-1,  1, -1, -1, -1,  1, -1,  0,  0, 1,
 1, -1,
> 1 ); isvowel: false),
>    (phoneme: 'z'; features: (-1,  1, -1, -1, -1,  1, 1,  0,  0, 1,  1, -1,
> 1 ); isvowel: false),
>    (phoneme: 's'; features: (-1,  1, -1, -1, -1,  1, 1,  0,  0, -1,
 1, -1,
> 1 ); isvowel: false),
>    (phoneme: 'S'; features: (-1,  1,  1, -1, -1, -1, 1,  0,  0, -1,
 1, -1,
> 1 ); isvowel: false),
>    (phoneme: 'm'; features: (-1,  1, -1, -1, -1,  1, -1,  0,  0, 1, -1,
>  1, -1 ); isvowel: false),
>    (phoneme: 'n'; features: (-1,  1, -1, -1, -1,  1, 1,  0,  0, 1, -1,
>  1, -1 ); isvowel: false),
>    (phoneme: 'c'; features: (-1,  1, -1, -1, -1,  1, 1,  0,  0, -1,
>  1, -1, -1 ); isvowel: false),
>    (phoneme: 'x'; features: (-1,  1,  1, -1, -1, -1, -1,  0,  0, -1,
 1, -1,
> 1 ); isvowel: false),
>    );
>
> This wouldn't compile. What's wrong?
>
> THANKS A LOT!!!
>
> Amit
>
>
;
syntax is the root of all ev0l :)
Technical Details
Message-ID: <c123tn$bpm$1@ctb-nnrp2.saix.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.netcom.net.uk!netcom.net.uk!194.72.7.126.MISMATCH!news-peer-test!news-peer0-test!btnet!ctb-nntp1.saix.net!not-for-mail
References: <c0su90$5c3$1@news.iucc.ac.il>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 104e31,673d7ddd4ee25466
X-Google-Attributes: gid104e31,public
X-Google-Thread: 111659,673d7ddd4ee25466
X-Google-Attributes: gid111659,public
X-Google-Thread: 1156ab,673d7ddd4ee25466
X-Google-Attributes: gid1156ab,public
X-Google-Thread: 10baee,673d7ddd4ee25466
X-Google-Attributes: gid10baee,public
X-Google-Thread: 1043cf,673d7ddd4ee25466
X-Google-Attributes: gid1043cf,public
X-Google-Thread: 10c950,673d7ddd4ee25466
X-Google-Attributes: gid10c950,public
X-Google-Thread: 10cc59,673d7ddd4ee25466
X-Google-Attributes: gid10cc59,public
X-Google-ArrivalTime: 2004-02-19 02:42:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.netcom.net.uk!netcom.net.uk!194.72.7.126.MISMATCH!news-peer-test!news-peer0-test!btnet!ctb-nntp1.saix.net!not-for-mail
From: "feardotcom" <feardotnoobz@hayoufellfor.it>
Newsgroups: alt.comp.lang.pascal,borland.public.delphi.objectpascal,comp.lang.pascal,comp.lang.pascal.ansi-iso,comp.lang.pascal.borland,comp.lang.pascal.delphi,comp.lang.pascal.delphi.misc
Subject: Re: HELP! PROBLEM WITH CONSTANT RECORD  DECLARATION!!!
Date: Thu, 19 Feb 2004 12:42:06 +0200
Organization: The South African Internet Exchange
Lines: 89
Message-ID: <c123tn$bpm$1@ctb-nnrp2.saix.net>
References: <c0su90$5c3$1@news.iucc.ac.il>
NNTP-Posting-Host: ndn-43-232.telkomadsl.co.za
X-Trace: ctb-nnrp2.saix.net 1077187319 12086 165.165.43.232 (19 Feb 2004 10:41:59 GMT)
X-Complaints-To: abuse@saix.net
NNTP-Posting-Date: 19 Feb 2004 10:41:59 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165