Re: [fpc-devel] String cases development

2009-05-05 Thread Michael Schnell
Tomas Hajny wrote: Perhaps the Wiki main page should be updated by one of the powers. I'm confused - which URL do you refer to? Sorry, it's not a Wiki page but the free pascal main page: http://www.freepascal.org/ -Michael ___ fpc-devel

Re: [fpc-devel] String cases development

2009-05-05 Thread Michael V. Denisenko
A question appeared when I tried to find a method of generating case-expression just once, not for every comparison. Is it optimal to try to add for every case-structure (and do...while, by the way) a temporary variable where we may hold the value of case-expression? mailto:mik...@mail.ru

Re: [fpc-devel] String cases development

2009-05-05 Thread Daniël Mantione
Op Tue, 5 May 2009, schreef Michael V. Denisenko: A question appeared when I tried to find a method of generating case-expression just once, not for every comparison. Is it optimal to try to add for every case-structure (and do...while, by the way) a temporary variable where we may hold the

Re: [fpc-devel] String cases development

2009-05-05 Thread Tomas Hajny
On Tue, May 5, 2009 09:07, Michael Schnell wrote: Tomas Hajny wrote: Perhaps the Wiki main page should be updated by one of the powers. I'm confused - which URL do you refer to? Sorry, it's not a Wiki page but the free pascal main page: http://www.freepascal.org/ As mentioned in my

Re: [fpc-devel] runtime error 216 on nested procedures

2009-05-05 Thread Jonas Maebe
On 04 May 2009, at 20:48, Dariusz Mazur wrote: I have problem with this small program below. I've compiled if on Linux/i386 FPC 2.2.2 Every time of run program halt with runtime. I've test it with short and ansistring. Result the same. But when I uncomment line with test2 everything goes

Re: [fpc-devel] String cases development

2009-05-05 Thread Michael Schnell
I suspect that you were confused by the section 'Requirements', Of course you are right: The Requirements section hits the eye a lot more :) . -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] String cases development

2009-05-05 Thread Peter Vreman
Op Tue, 5 May 2009, schreef Michael V. Denisenko: A question appeared when I tried to find a method of generating case-expression just once, not for every comparison. Is it optimal to try to add for every case-structure (and do...while, by the way) a temporary variable where we may hold

[fpc-devel] SetPropValue case sensitive

2009-05-05 Thread Leonardo M . Ramé
I found a difference between Delphi's SetPropValue function with its counterpart in FPC. In Delphi, this function is case insensitive, while in fpc it is case sensitive. Am I correct? Leonardo. ___ fpc-devel maillist -

Re: [fpc-devel] SetPropValue case sensitive

2009-05-05 Thread Sergei Gorelkin
Leonardo M. Ramé wrote: I found a difference between Delphi's SetPropValue function with its counterpart in FPC. In Delphi, this function is case insensitive, while in fpc it is case sensitive. Am I correct? The property name comparison (ending up in GetPropInfo(TypeInfo: PTypeInfo; const

Re: [fpc-devel] SetPropValue case sensitive

2009-05-05 Thread Leonardo M . Ramé
I studied a little deeper and the problem is (according to FPC 2.2.2 manual) that SetPropValue doesn't work because Variants are not implemented yet. The solution was easy, I used SetStrProp instead of SetPropValue. In my program all published properties were strings. Can you confirm if it

Re: [fpc-devel] SetPropValue case sensitive

2009-05-05 Thread Bogusław Brandys
Leonardo M. Ramé wrote: I studied a little deeper and the problem is (according to FPC 2.2.2 manual) that SetPropValue doesn't work because Variants are not implemented yet. The solution was easy, I used SetStrProp instead of SetPropValue. In my program all published properties were strings.

Re: [fpc-devel] SetPropValue case sensitive

2009-05-05 Thread Leonardo M . Ramé
Download this PDF and search for SetPropValue: http://www.eg.bucknell.edu/~cs208/subpages/software/share/doc/fpc-2.2.2/fpc-2.2.2/rtl.pdf Leonardo M. Ramé http://leonardorame.blogspot.com --- On Tue, 5/5/09, Bogusław Brandys bran...@o2.pl wrote: From: Bogusław Brandys bran...@o2.pl

Re: [fpc-devel] SetPropValue case sensitive

2009-05-05 Thread Felipe Monteiro de Carvalho
On Tue, May 5, 2009 at 3:36 PM, Leonardo M. Ramé martinr...@yahoo.com wrote: Download this PDF and search for SetPropValue: I think it's more probable that the documentation wasn't updated then that Variants aren't supported. -- Felipe Monteiro de Carvalho