Re: [fpc-devel] (patch) An attempt to improve assignments/function result reuse

2007-12-08 Thread Sergei Gorelkin
Jonas Maebe wrote: The next logical step would be returning all automated types in parameters, which would get rid of quite a pack of implicit finalization code. And thoroughly break Delphi compatibility at the same time :) Especially for assembler routines this could result in quite a few

Re: [fpc-devel] (patch) An attempt to improve assignments/function result reuse

2007-12-08 Thread Florian Klaempfl
Sergei Gorelkin schrieb: > Jonas Maebe wrote: >> >>> The next logical step would be returning all automated types in >>> parameters, which would get rid of quite a pack of implicit >>> finalization code. >> >> And thoroughly break Delphi compatibility at the same time :) >> Especially for assembler

Re: [fpc-devel] (patch) An attempt to improve assignments/function result reuse

2007-12-08 Thread Jonas Maebe
On 08 Dec 2007, at 17:45, Sergei Gorelkin wrote: Jonas Maebe wrote: The next logical step would be returning all automated types in parameters, which would get rid of quite a pack of implicit finalization code. And thoroughly break Delphi compatibility at the same time :) Especially for a

Re: [fpc-devel] (patch) An attempt to improve assignments/function result reuse

2007-12-08 Thread Sergei Gorelkin
Jonas Maebe wrote: Thanks, I've applied your patch. I'm also testing a patch for the function result handling (there was another issue: the fact that the fake "result" variable is actually implemented as an absolute variable referring to the actual function result, causing an extra absolute t

Re: [fpc-devel] (patch) An attempt to improve assignments/function result reuse

2007-12-08 Thread Jonas Maebe
On 08 Dec 2007, at 16:57, Sergei Gorelkin wrote: Jonas Maebe wrote: Thanks, I've applied your patch. I'm also testing a patch for the function result handling (there was another issue: the fact that the fake "result" variable is actually implemented as an absolute variable referring to th

Re: [fpc-devel] (patch) An attempt to improve assignments/function result reuse

2007-12-08 Thread Sergei Gorelkin
Florian Klaempfl wrote: Are you sure with the strings? Yes. Any function that returns a string is supplied with one more argument than it was declared. After calling the function, register eax (which is used to contain the non-parameter result) is not used. Here is a simple example: functi

Re: [fpc-devel] (patch) An attempt to improve assignments/function result reuse

2007-12-08 Thread Florian Klaempfl
Sergei Gorelkin schrieb: > Florian Klaempfl wrote: >> >> Are you sure with the strings? > > Yes. Any function that returns a string is supplied with one more > argument than it was declared. After calling the function, register eax > (which is used to contain the non-parameter result) is not used.

RE: [fpc-devel] (patch) An attempt to improve assignments/functionresult reuse

2007-12-08 Thread Thorsten Engler
> >> Are you sure with the strings? > > > > Yes. Any function that returns a string is supplied with one more > > argument than it was declared. After calling the function, register > > eax (which is used to contain the non-parameter result) is not used. > > Here is a simple example: > > I'am n

[fpc-devel] fcl-db\src\codegen

2007-12-08 Thread Paul Ishenin
Hello, FPC developers' list What for lazarus have package datadict if even recent fpc doesnot make some dependencies by default? For example fcl-dc\src\codegen is not in makefile. Please compile all dependent units by default. I used attached patch to solve problems here. Best regards, Paul