Article View: pl.comp.lang.delphi
Article #334817Re: E2032 For loop control variable must have ordinal type
From: R.e.m.e.K
Date: Mon, 16 Jan 2012 15:55
Date: Mon, 16 Jan 2012 15:55
17 lines
1322 bytes
1322 bytes
Dnia Mon, 16 Jan 2012 16:14:32 +0100, jh napisał(a): > TPhraseList<Integer, T> = class(TObjectDictionary<Integer, T>) > private > procedure DoParsePacketList(AStrings: TStringList); > end; > > Podpowie ktoś, skąd taki błąd? To chyba blad w generykach, bo gdy zmienna steruja petli jest typu byte lub word to sie kompiluje, tylko integer jest "zablokowany" a jego uzywasz w generyku. Jak sie Twojego generyka zamieni z <Integer, T> na np. <byte, T> to juz petla oparta o Integer biega. -- pozdro R.e.m.e.K
Technical Details
Message-ID:
<1br6f6z112z73$.dlg@hell.heaven>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!.POSTED!not-for-mailReferences:
<jf1eso$r2g$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!.POSTED!not-for-mail From: "R.e.m.e.K" <go@dev.null> Newsgroups: pl.comp.lang.delphi Subject: Re: E2032 For loop control variable must have ordinal type Date: Mon, 16 Jan 2012 16:55:40 +0100 Organization: ICM, Uniwersytet Warszawski Lines: 17 Sender: hell@heaven Message-ID: <1br6f6z112z73$.dlg@hell.heaven> References: <jf1eso$r2g$1@inews.gazeta.pl> NNTP-Posting-Host: 89-75-115-216.dynamic.chello.pl Mime-Version: 1.0 X-Trace: news.icm.edu.pl 1326729340 25446 89.75.115.216 (16 Jan 2012 15:55:40 GMT) X-Complaints-To: usenet@news.icm.edu.pl NNTP-Posting-Date: Mon, 16 Jan 2012 15:55:40 +0000 (UTC) User-Agent: 40tude_Dialog/2.0.15.1pl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit