Re: [fpc-devel] Using double quotes

2016-02-27 Thread Mark Morgan Lloyd
Marcos Douglas wrote: Is there any chance to implement in the compiler something link this? S := " insert into t ( id, description ) values ( 1, 'foo' ) "; Did you see? No, I don't see. It looks like an ordinary string to me, except that you're allowing it to extend over multip

Re: [fpc-devel] Add {$I %DATETIME%}

2016-02-27 Thread Denis Kozlov
What if we define %TIMESTAMP% or %UNIXTIMESTAMP%, instead of %DATETIME%? * %UNIXTIMESTAMP% - as a well defined Unix timestamp (i.e. number of seconds since Unix Epoch). * %TIMESTAMP% - as an Int64 version of TTimeStamp (i.e. number of MSecs since 1/1/0001). These could be inserted as plain

Re: [fpc-devel] TSimpleIPC is broken as a component in FPC 3.0.0

2016-02-27 Thread Denis Kozlov
@ Michael Should TSimpleIPC.SetActive also check for csDesigning in ComponentState? I presume we don't want to active IPC when used at design time? P.S. Mantis doesn't let me comment on the ticket #29717 . Denis On 24/02/2016 18:06, Denis Kozl

Re: [fpc-devel] Add {$I %DATETIME%}

2016-02-27 Thread Jonas Maebe
On 27/02/16 11:12, Denis Kozlov wrote: What if we define %TIMESTAMP% or %UNIXTIMESTAMP%, instead of %DATETIME%? * %UNIXTIMESTAMP% - as a well defined Unix timestamp (i.e. number of seconds since Unix Epoch). * %TIMESTAMP% - as an Int64 version of TTimeStamp (i.e. number of MSecs since 1/1/000

Re: [fpc-devel] Add {$I %DATETIME%}

2016-02-27 Thread Denis Kozlov
On 27/02/2016 12:08, Jonas Maebe wrote: If something is platform-specific, it generally does not belong as a language extension. It's the same as existing %DATE% and %TIME%, plus few mathematical operations, no extra dependencies. // Existing function used for %DATE% in globals.pas: functio

Re: [fpc-devel] Add {$I %DATETIME%}

2016-02-27 Thread Jonas Maebe
On 27/02/16 13:32, Denis Kozlov wrote: On 27/02/2016 12:08, Jonas Maebe wrote: If something is platform-specific, it generally does not belong as a language extension. It's the same as existing %DATE% and %TIME%, plus few mathematical operations, no extra dependencies. I meant platform-speci

Re: [fpc-devel] Add {$I %DATETIME%}

2016-02-27 Thread Michael Van Canneyt
On Sat, 27 Feb 2016, Jonas Maebe wrote: On 27/02/16 13:32, Denis Kozlov wrote: On 27/02/2016 12:08, Jonas Maebe wrote: If something is platform-specific, it generally does not belong as a language extension. It's the same as existing %DATE% and %TIME%, plus few mathematical operations, no

Re: [fpc-devel] TSimpleIPC is broken as a component in FPC 3.0.0

2016-02-27 Thread Michael Van Canneyt
On Sat, 27 Feb 2016, Denis Kozlov wrote: @ Michael Should TSimpleIPC.SetActive also check for csDesigning in ComponentState? I presume we don't want to active IPC when used at design time? You are right, I adapted the code in rev. 33129. Michael.

Re: [fpc-devel] Using double quotes

2016-02-27 Thread Marcos Douglas
On Fri, Feb 26, 2016 at 8:12 PM, Sven Barth wrote: > Am 26.02.2016 21:21 schrieb "Marcos Douglas" : >> >> Is there any chance to implement in the compiler something link this? > > No. Is there a good reason or you just don't liked? Thanks. Marcos Douglas _

Re: [fpc-devel] Using double quotes

2016-02-27 Thread Marcos Douglas
On Sat, Feb 27, 2016 at 6:38 AM, Mark Morgan Lloyd wrote: > Marcos Douglas wrote: >> >> Is there any chance to implement in the compiler something link this? >> >> S := " >> insert into t ( >> id, description >> ) values ( >> 1, 'foo' >> ) >> "; >> >> Did you see? > > > No, I don't s

Re: [fpc-devel] Using double quotes

2016-02-27 Thread Ralf Quint
On 2/27/2016 8:44 AM, Marcos Douglas wrote: On Sat, Feb 27, 2016 at 6:38 AM, Mark Morgan Lloyd wrote: Marcos Douglas wrote: Is there any chance to implement in the compiler something link this? S := " insert into t ( id, description ) values ( 1, 'foo' ) "; Did you see?

Re: [fpc-devel] Using double quotes

2016-02-27 Thread Marcos Douglas
On Sat, Feb 27, 2016 at 1:49 PM, Ralf Quint wrote: > Why not simply write: > > S := 'insert into t ( id, description ) values ( 1, ''foo'' )'; > > That also eliminates the problem with your "multi line string enclosed in > double-quotes" problem of not being clear where and how many spaces are in

Re: [fpc-devel] Using double quotes

2016-02-27 Thread Ralf Quint
On 2/27/2016 8:52 AM, Marcos Douglas wrote: On Sat, Feb 27, 2016 at 1:49 PM, Ralf Quint wrote: Why not simply write: S := 'insert into t ( id, description ) values ( 1, ''foo'' )'; That also eliminates the problem with your "multi line string enclosed in double-quotes" problem of not being cl

Re: [fpc-devel] Using double quotes

2016-02-27 Thread Mark Morgan Lloyd
Marcos Douglas wrote: On Sat, Feb 27, 2016 at 6:38 AM, Mark Morgan Lloyd wrote: Marcos Douglas wrote: Is there any chance to implement in the compiler something link this? S := " insert into t ( id, description ) values ( 1, 'foo' ) "; Did you see? No, I don't see. It looks l

Re: [fpc-devel] Using double quotes

2016-02-27 Thread Sven Barth
Am 27.02.2016 17:44 schrieb "Marcos Douglas" : > > On Fri, Feb 26, 2016 at 8:12 PM, Sven Barth wrote: > > Am 26.02.2016 21:21 schrieb "Marcos Douglas" : > >> > >> Is there any chance to implement in the compiler something link this? > > > > No. > > Is there a good reason or you just don't liked? T

[fpc-devel] InstantFPC in FPC distribution?

2016-02-27 Thread Denis Kozlov
Why is InstantFPC not included in FPC distribution? For example: * fpc-3.0.0.i386-win32.exe - no InstantFPC. * lazarus-1.6.0-fpc-3.0.0-win32.exe - contains InstantFPC. Denis ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freep