Re: [fpc-devel] win64 calling convention
On 11/29/2012 05:21 PM, Martin wrote: Just to confirm my observations. (again trying to get pascal script to work) if const is NOT used, then TPoint is put into a register if const is used, then TPoint is in mem, and the register is a reference. Is that right? (I know the doc says, no assumption, and can be ref or value) It does make sense. Not const forces copying the data during the function all, const uses the (supposedly) more efficient call by reference, while the compiler prevents modifying the data. (Beware that with objects the object reference is the variable, and not the object instance.) -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] win64 calling convention
Am 29.11.2012 22:36, schrieb Hans-Peter Diettrich: FPC has added constref, definitely forcing by-ref. AFAIR this was required for the ObjectiveC interface. No, it wasn't added for Objective C, but for XPCOM, which provides COM on non-Windows plattforms (X(Cross) Plattform Component Object Model). Regards, Sven ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Interface usage causes FPC to crash
Hi, Im interested on known the answers to Graeme questions. Cheers David ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Interface usage causes FPC to crash
30.11.2012 17:20, David Ballesteros пишет: Hi, Im interested on known the answers to Graeme questions. Delegation to interface-type properties is fully supported. Delegation to class-type properties is supported, but it requires the delegate class to implement the interface (this requirement is absent in Delphi). Method resolution also works, but it is mutually exclusive with delegation. The crash at compilation of course needs to be fixed. Regards, Sergei ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Re: [Lazarus] Beta testers needed / Lazarus with Editor-Macro-Script
On 30/11/2012 14:28, Reimar Grabowski wrote: On Fri, 30 Nov 2012 01:21:28 + Martin laza...@mfriebe.de wrote: Hi, I need some testers for all the different available platforms. Trying to run TestScriptProcs I get the following compilation error (along with a bunch of warnings): /lazarus/components/PascalScript/Source/x64.inc(144,3) Error: Asm: [push mem32] invalid combination of opcode and operands Ubuntu 12.10 / AMD 64 / fpc 2.7.1 rev 23082 @fpc list, can someone tell what the right syntax is? @Reimar: from a similar case, I would guess (line 144) push [rcx] must be push qword ptr [rcx] Could you try please? ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel