🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.pascal
Article #93189

przeciążanie property

#93189
From: webmajsterek
Date: Thu, 01 Sep 2011 07:51
18 lines
1580 bytes
czy jest jakaś możliwość przeciążania property ??
chciałem coś takiego zrobić 

 TListMemory=class(TStringList)
        function Get(Index: Integer): TMemoryStream;overload;
        function Get(Index: Integer): String;reintroduce;overload;
        procedure Put(Index: Integer; Item: TMemoryStream);overload;
        procedure Put(Index: Integer; Item: String);reintroduce;overload;
     public
        property Items[Index: Integer]: TMemoryStream read Get write Put;
        property Items[Index: Integer]: String Read Get Write Put;default;
  End;

a tu kompilator   w  każdej lini zwraca błąd ze tak nie można przeciążać .

-- 
Wysłano z serwisu OnetNiusy: http://niusy.onet.pl
Technical Details
Message-ID: <5a65.00000418.4e5f3969@newsgate.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsgate.m10r2.onet.pl!niusy.onet.pl

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsgate.m10r2.onet.pl!niusy.onet.pl
From: webmajsterek@poczta.onet.pl
Newsgroups: pl.comp.lang.pascal
Subject: przeciążanie property
Date: Thu, 01 Sep 2011 09:51:05 +0200
Organization: Onet.pl
Lines: 18
Sender: news@newsgate.onet.pl
Message-ID: <5a65.00000418.4e5f3969@newsgate.onet.pl>
NNTP-Posting-Host: newsgate.m10r2.onet.pl
Mime-Version: 1.0
X-Trace: newsgate.onet.pl 1314863466 25909 213.180.150.14 (1 Sep 2011 07:51:06 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Thu, 1 Sep 2011 07:51:06 +0000 (UTC)
X-Mailer: http://niusy.onet.pl
X-Forwarded-For: 83.25.175.45, 10.174.28.57
X-User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.1) Gecko/20100101 Firefox/6.0.1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit