Re: [fpc-pascal] random question

2010-06-04 Thread Vladimir Zhirov
the appropriate result. You can let Lazarus generate them for you by declaring the property and pressing Ctrl+C while cursor is on the same line with your property declaration. -- Regards, Vladimir Zhirov ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] random question

2010-06-04 Thread Vladimir Zhirov
> by declaring the property and pressing Ctrl+C Sorry, I meant Ctrl+Shift+C -- Regards, Vladimir Zhirov ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] playing sound files (linux and windows)

2010-06-14 Thread Vladimir Zhirov
> Has anybody managed to play sound files under both Linux and Windows? One more option I know of is Audorra (http://audorra.sourceforge.net/). I have not used it though, so no idea about its advantages/drawbacks. -- Regards, Vladimir Zhirov ___

[fpc-pascal] Licensing issue: Subclassing

2010-07-27 Thread Vladimir Zhirov
azarus. But in the above aspect it seems not clear enough. Would someone of the core team please comment on this? Maybe subclassing deserves to be explained in some licensing FAQ or even explicitly allowed in Modified LGPL itself? -- Best regards, Vladimir Zhirov

[fpc-pascal] A bug in documentation?

2010-10-26 Thread Vladimir Zhirov
Hi, Language Reference, Section 1.4 Identifiers says: > Identifiers consist of between 1 and 127 significant characters > (letters, digits and the underscore character), of which the > first must be an alphanumeric character, or an underscore (_). Should "alphanumeric" be "alphabetic" here? Sinc

[fpc-pascal] A question about sets performance

2011-01-31 Thread Vladimir Zhirov
Hi, I'm trying to optimize my CSV parser class, and facing with a bit unexpected results. I tried to change in-place set declaration (if ch in [a, b, c] then ...) to reusable set constants (if ch in ABCSet then ...), and noticed a slight slowdown. To check it, I created a simple test application:

Re: [fpc-pascal] Free Pascal 2.4.4 available

2011-05-26 Thread Vladimir Zhirov
Marco van de Voort wrote: > The FPC 2.4.4 release is available from our ftp-servers and > sourceforge. > ... Good news, thanks. http://freepascal.org/ still needs a minor fix: 2.4.2 should be changed to 2.4.4 in the "Current Version" section. ___ fpc-p

Re: [fpc-pascal] Free Pascal 2.4.4 available

2011-05-26 Thread Vladimir Zhirov
Marco van de Voort wrote: > Fixed, and some other details as well. Sorry, I still see "Version 2.4.2 is the latest stable version the Free Pascal." (BTW, it seems "of" is also missing after "version"). I tried clearing the cache and viewing the page in two different browsers, with no luck. Co

[fpc-pascal] Best integer type to be used for string indexes

2011-06-18 Thread Vladimir Zhirov
Hi, Reviewing a bunch of my string processing functions made me wonder what integer type should I use for position / length parameters. I used to plain "Integer" for this task, but looking through RTL and LCL code I noticed that sometimes SizeInt and even PtrInt are also used: - Length, Copy us

Re: [fpc-pascal] How do I load external Pascal code?

2011-10-14 Thread Vladimir Zhirov
Andrew Pennebaker wrote: > Thanks, the conditional execution code helps a lot. Does > $IFDEF look for an environment or Makefile variable? No, it looks for previously defined variables. You can define variables using -dMyVar command line switch when running the compiler, or {$DEFINE MyVar} in sour

Re: [fpc-pascal] How can I implement "thrice" in Free Pascal?

2011-10-18 Thread Vladimir Zhirov
Andrew Pennebaker wrote: > thrice :: a -> [a] > thrice x = [x, x, x] > I know the answer involves generics, but the docs don't > offer examples using Free Pascal's built-in generic types. The solution would require generic functions, these are implemented in FPC trunk only. In the latest release (

Re: [fpc-pascal] How can I implement "thrice" in Free Pascal?

2011-10-18 Thread Vladimir Zhirov
Sven Barth wrote: > Generic functions are NOT implemented in trunk (at least as > far as I know...). Ouch, sorry. I read about "generic procedural types" at "New features trunk" wiki page and thought it was what OP need. Andrew, I apologize for misinformation and thanks Sven for correcting me. ___

Re: [fpc-pascal] libQT4Pas - Why it is needed?

2012-02-01 Thread Vladimir Zhirov
> Do other languages like python use the plain c interface, or > C++? > how about something like ruby, lua, objective C, php .. AFAIK, Lua uses automatically generated plain C binding. When I looked at it, the binding generator consisted of the following parts: 1) A C++-based program to parse C++

[fpc-pascal] avl_tree.pp unit license

2008-05-24 Thread Vladimir Zhirov
Hi, I've got a question about the license of unit avl_tree.pp, that comes with FCL. FPC FAQ states that > Applications created by the compiler and using the runtime library > come under a modified library gnu public license (LGPL), which permit > no restriction on the type of license the applicat

[fpc-pascal] %5Bfpc-pascal%5D%20avl_tree.pp%20unit%20license&In-Reply-To=Pine.LNX.4.64.0805251018220.4326%40home.freepascal.org

2008-05-25 Thread Vladimir Zhirov
Thanks :) Mattias Gaertner wrote: > Maybe you should check other units too? I think it is a good idea. When I searched the text 'General Public License' in FPC sources that comes with Lazarus 0.9.24 I found 499 files that contain it. ___ fpc-pascal mai

[fpc-pascal] Complying with LGPL using FPC

2008-07-04 Thread Vladimir Zhirov
Hi, Would you please help me to find out the steps I should follow to comply with LGPL if my application is built using FPC and uses pascal source code of LGPL'ed library? Section 4 of LGPL requires to > d) Do one of the following: > 0) Convey the Minimal Corresponding Source under the terms of

[fpc-pascal] Complying with LGPL using FPC

2008-07-04 Thread Vladimir Zhirov
Tomas Hajny wrote: > I believe that one of the ways would be compiling lgpled_lib.pas into a > shared library/DLL and having it linked to your program dynamically, > another solution would be providing interested users with all the required > object files (*.o), libraries (.a) and a linker script.

Re: [fpc-pascal] Exe size

2008-09-04 Thread Vladimir Zhirov
Paul wrote: > I'm testing with FPC/Lazrus on Windows now, but a simple program results in > 11.5 MB size. > I have enabled -Xs, -CX, -Og, -O2 in the project->compiler options > (Lazarus), but the size is still the same. > Anything else I should do? Yes, you should also disable -gl option (Display

[fpc-pascal] Interfaces inheritance and "Supports" routine

2008-11-02 Thread Vladimir Zhirov
Hi, I've got a question on how does "Supports" function work. Here is the quote from the FPC docs: > Check whether a class or given interface supports an interface. > Supports checks whether Instance supports the interface identified by IID. It > returns True > if it is supported, False. Optiona