Re: [fpc-devel] Strange behaviour of ;

2005-10-22 Thread Tomas Hajny
Date sent: Sat, 22 Oct 2005 09:14:53 +0200 From: Florian Klaempfl <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], FPC developers' list Subject: Re: [fpc-devel] Strange behaviour of ; > Tomas Hajny wrote: >

Re: [fpc-devel] Strange behaviour of ;

2005-10-22 Thread Florian Klaempfl
Tomas Hajny wrote: > Date sent:Fri, 21 Oct 2005 09:46:05 +0200 (CEST) > Subject: Re: [fpc-devel] Strange behaviour of ; > From: "Peter Vreman" <[EMAIL PROTECTED]> > To: "FPC developers' list" &

Re: [fpc-devel] Strange behaviour of ;

2005-10-21 Thread Tomas Hajny
Date sent: Fri, 21 Oct 2005 09:46:05 +0200 (CEST) Subject:Re: [fpc-devel] Strange behaviour of ; From: "Peter Vreman" <[EMAIL PROTECTED]> To: "FPC developers' list" Send reply to: FPC de

Re: [fpc-devel] Strange behaviour of ;

2005-10-21 Thread Peter Vreman
> Marc Weustink wrote: > >> I can confirm this on linux-i386 2.0.0 and darwin-ppc 2.0.1 >> >> It looks like "+ " is parsed wrong. The next "program" >> compiles fine. > > Well, the compiler/parser thinks you use the unary + operator which it can > safely throw away :) IIRC TP accepted the unary + o

Re: [fpc-devel] Strange behaviour of ;

2005-10-21 Thread Florian Klaempfl
Marc Weustink wrote: > I can confirm this on linux-i386 2.0.0 and darwin-ppc 2.0.1 > > It looks like "+ " is parsed wrong. The next "program" > compiles fine. Well, the compiler/parser thinks you use the unary + operator which it can safely throw away :) IIRC TP accepted the unary + operator for

Re: [fpc-devel] Strange behaviour of ;

2005-10-20 Thread Marc Weustink
I can confirm this on linux-i386 2.0.0 and darwin-ppc 2.0.1 It looks like "+ " is parsed wrong. The next "program" compiles fine. Marc program testplus; {$mode objfpc} {$H+} begin + ParamStr(0); + ParamCount; + Exit; + WriteLN; end. Alexander Todorov wrote: Hi all, i have noticed

[fpc-devel] Strange behaviour of ;

2005-10-20 Thread Alexander Todorov
Hi all, i have noticed something strange and I am not sure if this is a bug or a feature. strSQL := Copy(strSQL,1,Length(strSQL)-1) + ' WHERE '; strSQL := strSQL ; + ConstructWhereClause; --^ This part of code must construct a sql sttement which is