Re: [fpc-devel] CmdLine

2006-10-22 Thread Yury Sidorov
From: "Daniël Mantione" <[EMAIL PROTECTED]> > I already implemented optimization of CmdLine for smartlinking for WinCE some > time ago. It is controlled by HAS_CMDLINE define. And CmdLine is declared as > function in WinCE system unit. > > CmdLine as property will be great, but I found that prope

Re: [fpc-devel] CmdLine

2006-10-21 Thread Daniël Mantione
Op Thu, 19 Oct 2006, schreef Yury Sidorov: > I already implemented optimization of CmdLine for smartlinking for WinCE some > time ago. It is controlled by HAS_CMDLINE define. And CmdLine is declared as > function in WinCE system unit. > > CmdLine as property will be great, but I found that prop

RE: [fpc-devel] CmdLine

2006-10-20 Thread peter green
> CmdLine as property will be great, but I found that property > getter/setter need to be declared before property declaration in the > interface part. This will garbage a global namespace with private > getters/setters. > > Is it possible to make compiler to accept getters/setters not > declared

Re: [fpc-devel] CmdLine

2006-10-19 Thread Yury Sidorov
From: "Daniël Mantione" <[EMAIL PROTECTED]> > Hi, > > Does the CmdLine variable in the System unit exist for Delphi/TP/... > compatibility ? Delphi compatibility. By the way, I have a patch ready which turns it into a property, which prevents some code being pulled in Hello World kind of apps.

Re: [fpc-devel] CmdLine

2006-10-19 Thread Micha Nelissen
Peter Vreman wrote: situations. Maybe you remember what the (currently disabled) VMT optimizer did for the LCL. It removed methods that the LCL expected to be there. After some thinking, the VMT optimizer can be enabled, but should not remove any published methods. Those may be referenced from

Re: [fpc-devel] CmdLine

2006-10-19 Thread Vinzent Hoefler
On Thursday 19 October 2006 09:39, Marc Weustink wrote: > The only thing guaranteed by the language is that if you follow its > definitions, it will compile. No. That's syntax. I'm talking about semantics. Vinzent. ___ fpc-devel maillist - fpc-deve

Re: [fpc-devel] CmdLine

2006-10-19 Thread Marc Weustink
Vinzent Hoefler wrote: On Thursday 19 October 2006 08:31, Marc Weustink wrote: The case shows that users can do this. There is no language construct that forbids it. So optimizing this with a smart linker may break such code. Yes, it may. So what? There's hell a lot of code that is generally

Re: [fpc-devel] CmdLine

2006-10-19 Thread Daniël Mantione
Op Thu, 19 Oct 2006, schreef Micha Nelissen: > Marc Weustink wrote: > > It isn't really doing much with the internals. I've to admit that > > It reads/searches the VMT pointers themselves, right ? Is that supposed to > work in the language ? I don't know, but there should be a way to request

Re: [fpc-devel] CmdLine

2006-10-19 Thread Vinzent Hoefler
On Thursday 19 October 2006 08:31, Marc Weustink wrote: > The case shows that users can do this. There is no language construct > that forbids it. So optimizing this with a smart linker may break > such code. Yes, it may. So what? There's hell a lot of code that is generally possible within the

Re: [fpc-devel] CmdLine

2006-10-19 Thread Micha Nelissen
Marc Weustink wrote: It isn't really doing much with the internals. I've to admit that It reads/searches the VMT pointers themselves, right ? Is that supposed to work in the language ? Micha ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] CmdLine

2006-10-19 Thread Marc Weustink
Micha Nelissen wrote: Peter Vreman wrote: That is impossible. The linker is 'stupid' in that sence. And it also should not be trying to be smart. Otherwise it will fail in other situations. Maybe you remember what the (currently disabled) VMT optimizer did for the LCL. It removed methods that

Re: [fpc-devel] CmdLine

2006-10-19 Thread Micha Nelissen
Peter Vreman wrote: That is impossible. The linker is 'stupid' in that sence. And it also should not be trying to be smart. Otherwise it will fail in other situations. Maybe you remember what the (currently disabled) VMT optimizer did for the LCL. It removed methods that the LCL expected to be th

Re: [fpc-devel] CmdLine

2006-10-18 Thread Daniël Mantione
Op Thu, 19 Oct 2006, schreef Peter Vreman: > > Daniël Mantione wrote: > >> By the way, I have a patch ready which turns it into a property, which > >> prevents some code being pulled in Hello World kind of apps. > > > > Would be nice if somehow smartlinking could be 'smartened' to optimize > > t

Re: [fpc-devel] CmdLine

2006-10-18 Thread Peter Vreman
>>> Would be nice if somehow smartlinking could be 'smartened' to optimize >>> this out. (Conditional initialization for group of >>> variables/functions?) >> >> Yes :) I thought at least a hundred times about it during the last ten >> years, but I never came up with an idea that is both clean and

Re: [fpc-devel] CmdLine

2006-10-18 Thread Peter Vreman
> Daniël Mantione wrote: >> By the way, I have a patch ready which turns it into a property, which >> prevents some code being pulled in Hello World kind of apps. > > Would be nice if somehow smartlinking could be 'smartened' to optimize > this out. (Conditional initialization for group of variable

Re: [fpc-devel] CmdLine

2006-10-18 Thread Micha Nelissen
Daniël Mantione wrote: > something like cmdline, and start applying this technique to other things > in the system unit, it becomes one mess of helper units. Btw, I don't think have any right to say this, looking at all the include files in the fpc source itself ;-). unix <-> linux <-> objpas <->

Re: [fpc-devel] CmdLine

2006-10-18 Thread Micha Nelissen
Daniël Mantione wrote: > I have considered the use of units. But if you need a unit for > something like cmdline, and start applying this technique to other things > in the system unit, it becomes one mess of helper units. To be able to smartlink this situation, you *need* to group them somehow.

Re: [fpc-devel] CmdLine

2006-10-18 Thread Daniël Mantione
Op Wed, 18 Oct 2006, schreef Micha Nelissen: > Daniël Mantione wrote: > > > > Op Wed, 18 Oct 2006, schreef Micha Nelissen: > > > >> Would be nice if somehow smartlinking could be 'smartened' to optimize > >> this out. (Conditional initialization for group of variables/functions?) > > > > Yes

Re: [fpc-devel] CmdLine

2006-10-18 Thread Micha Nelissen
Daniël Mantione wrote: > > Op Wed, 18 Oct 2006, schreef Micha Nelissen: > >> Would be nice if somehow smartlinking could be 'smartened' to optimize >> this out. (Conditional initialization for group of variables/functions?) > > Yes :) I thought at least a hundred times about it during the last t

Re: [fpc-devel] CmdLine

2006-10-18 Thread Daniël Mantione
Op Wed, 18 Oct 2006, schreef Micha Nelissen: > Daniël Mantione wrote: > > By the way, I have a patch ready which turns it into a property, which > > prevents some code being pulled in Hello World kind of apps. > > Would be nice if somehow smartlinking could be 'smartened' to optimize > this ou

Re: [fpc-devel] CmdLine

2006-10-18 Thread Micha Nelissen
Daniël Mantione wrote: > By the way, I have a patch ready which turns it into a property, which > prevents some code being pulled in Hello World kind of apps. Would be nice if somehow smartlinking could be 'smartened' to optimize this out. (Conditional initialization for group of variables/functi

Re: [fpc-devel] CmdLine

2006-10-18 Thread Daniël Mantione
Op Wed, 18 Oct 2006, schreef Michael Van Canneyt: > > > On Wed, 18 Oct 2006, Peter Vreman wrote: > > > >> Does the CmdLine variable in the System unit exist for Delphi/TP/... > > >> compatibility ? > > > > > > Delphi compatibility. > > > > > > By the way, I have a patch ready which turns it i

Re: [fpc-devel] CmdLine

2006-10-18 Thread Michael Van Canneyt
On Wed, 18 Oct 2006, Peter Vreman wrote: > >> Does the CmdLine variable in the System unit exist for Delphi/TP/... > >> compatibility ? > > > > Delphi compatibility. > > > > By the way, I have a patch ready which turns it into a property, which > > prevents some code being pulled in Hello World

Re: [fpc-devel] CmdLine

2006-10-18 Thread Peter Vreman
>> Does the CmdLine variable in the System unit exist for Delphi/TP/... >> compatibility ? > > Delphi compatibility. > > By the way, I have a patch ready which turns it into a property, which > prevents some code being pulled in Hello World kind of apps. That is the best solution. It will then als

Re: [fpc-devel] CmdLine

2006-10-18 Thread Daniël Mantione
Op Wed, 18 Oct 2006, schreef Micha Nelissen: > Hi, > > Does the CmdLine variable in the System unit exist for Delphi/TP/... > compatibility ? Delphi compatibility. By the way, I have a patch ready which turns it into a property, which prevents some code being pulled in Hello World kind of ap