Re: [fpc-pascal] Re: Initialization of class field
Am 01.08.2012 00:14, schrieb leledumbo: I think the fast point from OP point of view is the less typing, less source code. Not from executable point of view. Might be, but as there are people that are complaining about class instance initialization speed (the instance's memory is initialized using FillChar) I wanted to mention this. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Initialization of class field
In our previous episode, leledumbo said: > I think the fast point from OP point of view is the less typing, less source > code. Not from executable point of view. Hmmm, makes me wonder when typing became the limiting factor in programming :-) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] strlen and nil
Hi, What does strlen return on nil? The FPC function strlen is implemented via FPC_PCHAR_LENGTH. The documentation does not say what happens when passing nil. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] strlen and nil
In our previous episode, Mattias Gaertner said: > What does strlen return on nil? > The FPC function strlen is implemented via FPC_PCHAR_LENGTH. > The documentation does not say what happens when passing nil. Both the generic and assembler implementation return 0. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] strlen and nil
On Wed, 1 Aug 2012 12:21:05 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: > In our previous episode, Mattias Gaertner said: > > What does strlen return on nil? > > The FPC function strlen is implemented via FPC_PCHAR_LENGTH. > > The documentation does not say what happens when passing nil. > > Both the generic and assembler implementation return 0. Thanks. Can this be added to the docs? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Initialization of class field
On 8/1/12, Marco van de Voort wrote: > > Hmmm, makes me wonder when typing became the limiting factor in programming > :-) > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > [OT] Ideal programming Language (ObjectPascal 10.1?), reduced typing. Program AnyProgram; begin MyPrgram := TMyProgram.Create(ReadMyMindAndCreateWhatIWantNow); end. Write Once, Build Different Things Any Time, Any OS, Any Platform... Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] strlen and nil
On Wed, 1 Aug 2012, Mattias Gaertner wrote: On Wed, 1 Aug 2012 12:21:05 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: In our previous episode, Mattias Gaertner said: What does strlen return on nil? The FPC function strlen is implemented via FPC_PCHAR_LENGTH. The documentation does not say what happens when passing nil. Both the generic and assembler implementation return 0. Thanks. Can this be added to the docs? Done. rev. 930. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Initialization of class field
In our previous episode, Bart said: > > [OT] > Ideal programming Language (ObjectPascal 10.1?), reduced typing. > > Program AnyProgram; > begin > MyPrgram := TMyProgram.Create(ReadMyMindAndCreateWhatIWantNow); > end. Actually, from experience, that isn't even enough. What you want at the beginning is often irrelevant. What you want is the endresult of after you went through the whole development trajectory :-) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal