On Thu, Mar 28, 2013 at 10:10 PM, Sven Barth wrote:
>
> Addition: It also does not compile if you do "static; inline;", so I
> consider this definitely a bug in the Delphi compiler...
>
Agreed.
Same behaviour in Delphi XE3 by the way.
___
fpc-devel mai
On Thu, Mar 28, 2013 at 6:53 PM, Sven Barth wrote:
> Delphi compiler error for the "Equal" line:
Not if you include an "inline;" directive. Then it compiles. If no
inline directive I do get an E1030.
Quirk of the XE (i don't have D2007) compiler I guess. I will check
with XE3 later and tell you.
"Don't allow "static" for class operators or normal methods (except in objects)"
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=23944
Does this mean that the following code:
{$mode=Delphi}
type
TRec = record
...
class function Empty: TRec; static;
class operat
On Sat, Jan 26, 2013 at 4:57 PM, Sven Barth wrote:
> On 26.01.2013 15:52, Alexander Klenin wrote:
>>
>> On Sun, Jan 27, 2013 at 12:26 AM, Paul Ishenin
>> wrote:
>>>
>>> 26.01.13, 6:57, Alexander Klenin пишет:
>>>
>>> Why to invent a new solution if Delphi already have one:
>>>
>>> http://docs.emb
>> Delphi doesn't support qword at all, so there is no Delphi behaviour to
>> be compatible with in that case. Or at least it didn't when the above
>> was implemented. Does it now?
>
>
> No, it does not.
Delphi XE has a UInt64 type. From the documentation:
UInt64 represents a subset of the whole
> In the mean time there is tons of code that relies on copy() copying until
> end of string or dynamic array. Constructions like
> param=copy(s,pos('=')+1,length(s)) are plenty. Just do a grep in the fpc
> compiler dir for "copy(" and you'l find plenty of copy(s,p+1,255) and the
> like.
Second th
Hello everyone,
I am trying to compile the following code:
procedure XORBuff(I1, I2: Pointer; Size: Integer; Dest: Pointer);
{$IFDEF FPC}
{$ASMMODE INTEL}
{$ENDIF}
asm
AND ECX,ECX
JZ@@5
PUSH ESI
PUSH EDI
MOV ESI,EAX
MOV EDI,Dest
@@1: TEST
Hello everyone.
I am trying to port a set of Delphi libraries to FPC and during
compilation from the Lazarus IDE I get a "Compilation aborted" without
any other explanation. Doing the build from a command prompt I get
this:
Compiling unit1.pas
Compiling C:\Projects\MkCtrls\PropStorage.pas
Compili