Re: [fpc-pascal] Fw: last svn fpc laz when build

2007-06-27 Thread vsnijders
Is there a define to detect if the compiler supports 1,2 byte sets? I could use 
something like {$IFNDEF 2_0}{$IFNDEF 2_1}{$IFNDEF 2_2} but maybe there is a 
smarter solution.

Vincnet

- Original Message - 
From: 刘治国 
To: [EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 9:57 AM
Subject: last svn fpc laz when build 


last svn fpc laz  when build 

erroer


IDECommands.pas(586,11) Error: Illegal type conversion: Set Of TShiftStateEnum
 to LongInt
IDECommands.pas(586,38) Error: Illegal type conversion: Set Of TShiftStateEnum
 to LongInt
IDECommands.pas(588,11) Error: Illegal type conversion: Set Of TShiftStateEnum
 to LongInt
IDECommands.pas(588,38) Error: Illegal type conversion: Set Of TShiftStateEnum
 to LongInt___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CheckSynchronize

2007-06-22 Thread vsnijders


- Original Message -
From: Felipe Monteiro de Carvalho [EMAIL PROTECTED]
Date: Friday, June 22, 2007 10:04 am
Subject: Re: [fpc-pascal] CheckSynchronize

 On 6/22/07, Vincent Snijders [EMAIL PROTECTED] wrote:
  It is not that we can't use the release, but we (at least I) 
 rather risk a possible instability rather than have some some known 
 bugs and limitations. And that I want to invest time in it by 
 distributing patched versions of fpc. I think this is similar to 
 why there is debian for people who value stability and ubuntu for 
 people who want faster bug fixes or new features.
 
 Are the bugs really that severe that people can't wait for 2.2.2?
 

Sure they can wait. Lazarus users are really patient people, they are waiting 
for more 
than three years now for Lazarus 1.0.0.

 I think that maintaining such separate branch isn't a good idea. If
 the fixes haven't been commited 

They have been committed, but have not been merged to the fixes branch. 

 because they can have unprevisible
 side effects, releasing Lazarus with them may just as well
 fix a bug for some users, but add new bugs for lot's of other people,
 and then make this Lazarus release unusable for lot's of people.
 

Any fix can have unprevisible side effects. Unless we test, we don't know the 
impact.

Vincent

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] GTK2 Lazarus Project, but I want QT.

2007-06-21 Thread vsnijders


- Original Message -
From: Catalin Zamfir Alexandru [EMAIL PROTECTED]
 According to the instructions on the Qt_Interface Lazarus Wiki Page.

That is what I assume you did.  But to make sure you did all the required 
steps, I asked if you could outline them in your own words.


 
 On Thursday 21 June 2007 00:49, Vincent Snijders wrote:
  On Wed, 20 Jun 2007 23:58:15 +0300
 
  Catalin Zamfir Alexandru [EMAIL PROTECTED] wrote:
   Yes, built LCL for the Qt Interface. Compilation went great.
 
  A trick question: how did you do that exactly?
 

Vincent
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] CheckSynchronize

2007-06-21 Thread vsnijders


- Original Message -
From: Jonas Maebe [EMAIL PROTECTED]
Date: Tuesday, June 19, 2007 10:34 am
Subject: Re: [fpc-pascal] CheckSynchronize

 
 On 18 jun 2007, at 19:48, Vincent Snijders wrote:
 
  Is it our fault that we call CheckSynchronize nested (i.e.  
  indirectly from a synchronized method) or is a CheckSynchronize 
 not  
  smart enough not to call the synchronized method (i.e MyMessage)  
  twice, even if Synchronize is called only once for this method. 
 If  
  the latter
 
 It is the latter. Nested CheckSynchronize calls are currently  
 unsupported.
 

The following patch from Micha works with pfc 2.1.5:
I tried to run the test programs with fpc 2.3.1 too, but I had too much troubles
with the heapmanager to be able to test it.

Can this patch be applied?

Vincent

Index: rtl/objpas/classes/classes.inc
===
--- rtl/objpas/classes/classes.inc  (revision 7729)
+++ rtl/objpas/classes/classes.inc  (working copy)
@@ -177,12 +177,12 @@
 
 if DoSynchronizeMethod then
   begin
+DoSynchronizeMethod:=false;
 try
   SynchronizeMethod;
 except
   SynchronizeException:=Exception(AcquireExceptionObject);
 end;
-DoSynchronizeMethod:=false;
 RtlEventSetEvent(ExecuteEvent);
   end;
   end;


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Interesting namespace question

2007-06-21 Thread vsnijders


- Original Message -
From: ik [EMAIL PROTECTED]
Date: Thursday, June 21, 2007 2:53 pm
Subject: [fpc-pascal] Interesting namespace question

 Hi,
 I saw an interesting bug on C++, and I was wondering how to solve this
 type of bug in Pascal:
 
 {$MODE OBJFPC}
 program namespace_test;
 
 function test : boolean;
 begin
  result := true;
 end;
 
 type
  TTest = class
 function test : boolean;
  end;
 
 function TTest.test : boolean;
 begin
  result := test;
 end;
 
 var
  c_test : TTest;
 
 begin
  c_test := TTest.create;
  try
writeln (c_test.test);
  finally
c_test.free;
  end;
 end.
 
 OK the question is, the TTest.test, what is the test function that it
 will call, the one inside the class, or the one outside it (I belive
 that it will call itself once), and how can i call the function
 outside the class ?
 

I think it will call itself, until it runs out of stack space (error 202).

If you want to call the test function, use namespace_test.test;

Vincent

P.S. To be sure, just compile the code ...
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] CheckSynchronize

2007-06-21 Thread vsnijders


- Original Message -
From: Jonas Maebe [EMAIL PROTECTED]
Date: Thursday, June 21, 2007 2:54 pm
Subject: Re: [fpc-pascal] CheckSynchronize

 
 On 21 jun 2007, at 14:45, [EMAIL PROTECTED] wrote:
 
  The following patch from Micha works with pfc 2.1.5:
  I tried to run the test programs with fpc 2.3.1 too, but I had 
 too  
  much troubles
  with the heapmanager to be able to test it.
 
  Can this patch be applied?
 
 I think it's ok.

Shall I apply to trunk, so that it can be merged to the fixes_2_2 branch later 
this week?

Vincent
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] CheckSynchronize

2007-06-21 Thread vsnijders


- Original Message -
From: Jonas Maebe [EMAIL PROTECTED]
Date: Thursday, June 21, 2007 2:57 pm
Subject: Re: [fpc-pascal] CheckSynchronize

 
 On 21 jun 2007, at 14:54, Jonas Maebe wrote:
 
  On 21 jun 2007, at 14:45, [EMAIL PROTECTED] wrote:
 
  The following patch from Micha works with pfc 2.1.5:
  I tried to run the test programs with fpc 2.3.1 too, but I had 
 too  
  much troubles
  with the heapmanager to be able to test it.
 
  Can this patch be applied?
 
  I think it's ok.
 
 But I'd prefer not to apply it in 2.1.5 (and rather wait for 
 2.2.1),  
 because it is hard to see/know all side effects from such a change.

I committed it in trunk in r7756.

I created a wiki page with missing changes in the fixes branch. I am 
considering to add them the snapshots built for Lazarus. 
http://wiki.lazarus.freepascal.org/Useful_changes_not_in_the_fixes_branch

Vincent
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal