Article View: pl.comp.lang.pascal
Article #93156Re: Przeciazanie jak w delphi
From: Wiktor S.
Date: Thu, 24 Mar 2011 22:34
Date: Thu, 24 Mar 2011 22:34
19 lines
1375 bytes
1375 bytes
> właśnie odkryłem ze fpc 2.5.1 ma możliwośc przeciążania jak w delpi
> operatorów dla rekordów .
>
> {$Mode Delphi}
>
> type
> R = record
> F: Integer;
> class operator Implicit(const v: integer): R;
> class Operator Explicit(const v: R ): integer;
> end;
szkoda że twórcy Delphi kompletnie ignorują Free Pascala, za każdym razem
wymyślając własną składnię, nawet jesli w FPC coś było wcześniej.
--
Azarien
Technical Details
Message-ID:
<imggtt$2rt$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mailReferences:
<178f.000003c9.4d89b24e@newsgate.onet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mail From: "Wiktor S." <wswiktorSP@Mpoczta.fm> Newsgroups: pl.comp.lang.pascal Subject: Re: Przeciazanie jak w delphi Date: Thu, 24 Mar 2011 23:34:12 +0100 Organization: http://onet.pl Lines: 20 Message-ID: <imggtt$2rt$1@news.onet.pl> References: <178f.000003c9.4d89b24e@newsgate.onet.pl> NNTP-Posting-Host: 188.33.137.167 Mime-Version: 1.0 X-Trace: news.onet.pl 1301006078 2941 188.33.137.167 (24 Mar 2011 22:34:38 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Thu, 24 Mar 2011 22:34:38 +0000 (UTC) In-Reply-To: <178f.000003c9.4d89b24e@newsgate.onet.pl> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17514 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit