[fpc-pascal] Re: fpc-pascal Digest, Vol 87, Issue 13

2011-09-11 Thread Ingemar Ragnemalm
From: Marcos Douglas m...@delfire.net Subject: Re: [fpc-pascal] Overloading the increment operator (+=) To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Message-ID: CA+ixmeZZ9r2EiUzqJ-F2=htugyunkywhy_729jfyuofqyii...@mail.gmail.com Content-Type: text/plain; charset=UTF-8

Re: [fpc-pascal] Overloading the increment operator (+=)

2011-09-11 Thread Jonas Maebe
On 10 Sep 2011, at 22:32, Flávio Etrusco wrote: Does FPC allow overloading the += operator? If not, why? It is translated into x:=x+y at the parser level, and overload resolving happens later. So once you overload + (and := if required), += should also work. Jonas

[fpc-pascal] Cannot build RTL for native NT

2011-09-11 Thread Andre Tampubolon
These were the steps I did (based on http://wiki.freepascal.org/Target_NativeNT) 1. Check out svn.freepascal.org/svn/fpc/trunk (revision 19048), put it into C:\Downloads\Software\fpc 2. Build ppc386 and fpcmake, then put it into C:\fpc-nativent 4. Build the RTL:

Re: [fpc-pascal] Overloading the increment operator (+=)

2011-09-11 Thread Flávio Etrusco
On Sun, Sep 11, 2011 at 9:22 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 10 Sep 2011, at 22:32, Flávio Etrusco wrote: Does FPC allow overloading the += operator? If not, why? It is translated into x:=x+y at the parser level, and overload resolving happens later. So once you

Re: [fpc-pascal] Overloading the increment operator (+=)

2011-09-11 Thread Jürgen Hestermann
Flávio Etrusco schrieb: += can't be efficiently implemented with two operations (since concatenating the operand would be unexpected to the user...). Why not use inc(x,y)? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org