[fpc-pascal] Re: Program without window but messages

2012-04-25 Thread leledumbo
You need to call Application.Initialize prior to anything if you want to use LCL features (including its dialogs). Your uses clause seems overkill. Only Interfaces, Forms and Dialogs units required for ShowMessage function. -- View this message in context: http://free-pascal-general.1045716.n5.na

[fpc-pascal] Re: How to install another version of fpc?

2012-04-29 Thread leledumbo
fpc would look for the compiler in the same directory as it is. I believe your fpc resides in /usr/bin or /usr/local/bin -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/How-to-install-another-version-of-fpc-tp5672688p5675207.html Sent from the Free Pascal - Gener

[fpc-pascal] Re: Linux sound (especially MIDI) programming: ALSA?

2012-05-06 Thread leledumbo
http://sourceforge.net/projects/fpalsa/ http://sourceforge.net/projects/humus/ -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Linux-sound-especially-MIDI-programming-ALSA-tp5688908p5690300.html Sent from the Free Pascal - General mailing list archive at Nabble.

[fpc-pascal] Re: Parsing parameters inside an interpreter

2012-05-14 Thread leledumbo
SScanf from SysUtils unit. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Parsing-parameters-inside-an-interpreter-tp5708067p5708704.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-

[fpc-pascal] fcl-web: custom URL dispatcher/mapper

2012-05-26 Thread leledumbo
By default, fcl-web uses the following dispatching schema: // Is there anyway to customize this behavior? -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fcl-web-custom-URL-dispatcher-mapper-tp5709875.html Sent from the Free Pascal - General mailing list archive

[fpc-pascal] Re: Getting an output string from a TProcess

2012-06-01 Thread leledumbo
> Commandline is signed as deprecated, so what is the best way to pass a string to TProcess? Is the commandline the first item of the tstrings called parameter? http://www.freepascal.org/docs-html/fcl/process/tprocess.commandline.html See something that explains it there? > The output is a cl

[fpc-pascal] Re: Getting an output string from a TProcess

2012-06-02 Thread leledumbo
WUAOOOW!!! Where are those functions, Marco? Which revision implements them? And last but not least, do those functions consider BIG output? -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Getting-an-output-string-from-a-TProcess-tp5709934p5709940.html Sent from

[fpc-pascal] jvmbackend merge

2012-06-02 Thread leledumbo
I saw a big commit merging jvmbackend branch into the main branch. Is it stable already? I currently have both from svn, if it's already stable I'm planning on deleting the jvmbackend only. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/jvmbackend-merge-tp570994

[fpc-pascal] Re: Getting an output string from a TProcess

2012-06-02 Thread leledumbo
> In 2.7.1 (trunk) I mean... which unit? -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Getting-an-output-string-from-a-TProcess-tp5709934p5709943.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _

[fpc-pascal] Re: jvmbackend merge

2012-06-03 Thread leledumbo
I tried building the compiler, it passes but I have to do some changes. The make process fails after compiling the compiler ended with some warnings regarding constructing a class with abstract method in compiler/jvm/hlcgcpu.pas. The compiler seems to return exit code 1 on warnings and that's the c

[fpc-pascal] Re: asm statement

2012-06-12 Thread leledumbo
> What happens if there is only the end; statement without the used registers? The compiler couldn't save the values in the registers prior to the asm block. If they contain intermediate result, they may be gone and unexpected result would come. CMIIW. -- View this message in context: http://fre

[fpc-pascal] Re: encryption and decryption

2012-06-23 Thread leledumbo
> How to use TBlowFishEnCryptStream? Is there any example for mortals? No but I guess the doc is clear enough. To encrypt: 1. Create TBlowFishEnCryptStream instance supplying a key and the stream to write encrypted data to 2. Write the data using its Write method 3. Flush or Free (Free implies Fl

[fpc-pascal] Re: encryption and decryption

2012-06-24 Thread leledumbo
For examples, I think it's better to use the data type wrapper of the Read/Write, instead of using the low level methods: {$mode objfpc}{$H+} uses classes,blowfish; var en: TBlowFishEncryptStream; de: TBlowFishDeCryptStream; s1,s2: TStringStream; key,value,temp: String; begin key := 't

[fpc-pascal] Re: Longstrings

2012-07-03 Thread leledumbo
Example of this "no effect"? {$H+} should do it. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Longstrings-tp5710228p5710229.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal

[fpc-pascal] Re: Longstrings

2012-07-04 Thread leledumbo
No, directives at most have only unit scope. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Longstrings-tp5710228p5710236.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal mail

[fpc-pascal] Should FCL documentation be splitted?

2012-07-05 Thread leledumbo
I would like to document some of the FCL, however the layout is still like the first time it appears in FPC. Current FCL are splitted into many subpackages, and since the number of units is HUGE (which I guess the same reason why the package was splitted) would it be better to split the documentati

[fpc-pascal] Re: Should FCL documentation be splitted?

2012-07-06 Thread leledumbo
OK, I'll keep it that way. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Should-FCL-documentation-be-splitted-tp5710248p5710250.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pasc

[fpc-pascal] Re: Should FCL documentation be splitted?

2012-07-06 Thread leledumbo
No, I only want to (and am capable to) document FCL :p -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Should-FCL-documentation-be-splitted-tp5710248p5710252.html Sent from the Free Pascal - General mailing list archive at Nabble.com.

[fpc-pascal] Define for -gh

2012-07-09 Thread leledumbo
Seems like I can't find it. Is there anything defined when I pass -gh? I need it to create optional feature of memory leak tracer. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Define-for-gh-tp5710270.html Sent from the Free Pascal - General mailing list archiv

[fpc-pascal] Re: Small and not instalable web server for a local Pascal CGI application

2012-07-13 Thread leledumbo
Use fphttpserver from fcl-web, you'll need to change your main program a little though (you'll need to assign Application.Port) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Small-and-not-instalable-web-server-for-a-local-Pascal-CGI-application-tp5710314p571032

[fpc-pascal] Cross platform signal handler?

2012-07-14 Thread leledumbo
Do we have it? And if not, what's the available solution for windows? -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Cross-platform-signal-handler-tp5710328.html Sent from the Free Pascal - General mailing list archive at Nabble.com.

[fpc-pascal] Re: Cross platform signal handler?

2012-07-15 Thread leledumbo
> It will depend on what you want to achive. So, what do you need it for? Handle Ctrl+C and other kinds of forced program termination. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Cross-platform-signal-handler-tp5710328p5710332.html Sent from the Free Pascal

[fpc-pascal] Re: Cross platform signal handler?

2012-07-16 Thread leledumbo
Thanks, that's closer, I hope the linux ifdef could be replaced with unix (Mac OS X is *nix, right?). I wonder why we don't have it at RTL level... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Cross-platform-signal-handler-tp5710328p5710355.html Sent from the

[fpc-pascal] Re: UnicodeString comparison performance

2012-07-20 Thread leledumbo
I look at the generated code and in the direct one there's additional overhead of decrementing the reference counter on each iteration. Here's what the core code looks like: Direct: leal -56(%ebp),%eax call fpc_unicodestr_decr_ref leal -56(%ebp),%eax call P$TEST_$$_GETSOMESTRING$$UNICO

fpc-pascal@lists.freepascal.org

2012-07-22 Thread leledumbo
I have a web app that works fine with embedded http server, but due to its current bugs, I need to switch to something more reliable. So I choose FastCGI and a great web server for this so far is Nginx for me. This is the configuration for my web: server { listen 80; index /index/ho

fpc-pascal@lists.freepascal.org

2012-07-22 Thread leledumbo
> Please report any bugs you find. I know of only 1 bug that is connected to reliability. I would, but the error is intermittent and it's difficult to create a test program that always generates the bug. > Module/action syntax depends on how the PATHINFO variable is passed to the > CGI/FastCGI s

fpc-pascal@lists.freepascal.org

2012-07-22 Thread leledumbo
It's indeed nginx fastcgi configuration issue, I've managed to make it work somehow by reading its documentation. Thanks :) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Nginx-FastCGI-and-module-action-vs-module-module-action-action-tp5710411p5710416.html Sen

fpc-pascal@lists.freepascal.org

2012-07-22 Thread leledumbo
Basically I just have to add this: http://wiki.nginx.org/HttpFastcgiModule#fastcgi_split_path_info location / { fastcgi_split_path_info ^((?U).+www.tkd1depok.org)(/?.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED$document_roo

fpc-pascal@lists.freepascal.org

2012-07-23 Thread leledumbo
Yep, the embedded http server. It's been reported: http://bugs.freepascal.org/view.php?id=22260 -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Nginx-FastCGI-and-module-action-vs-module-module-action-action-tp5710411p5710421.html Sent from the Free Pascal - Gen

[fpc-pascal] Re: UnicodeString comparison performance

2012-07-23 Thread leledumbo
That one I cannot answer, please summon Florian/Jonas/Marco/Michael/whoever capable to answer -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/UnicodeString-comparison-performance-tp5710405p5710423.html Sent from the Free Pascal - General mailing list archive at

fpc-pascal@lists.freepascal.org

2012-07-23 Thread leledumbo
Seems like the old IncludeHTTPPathDelimiter bug strikes back (AFAIR it's been closed when I said Marco's patch works), I need to change: procedure RegisterFileLocation(const ALocation,ADirectory: String); begin ... if (ADirectory='') then Locations.Values[IncludeTrailingPathDelimiter(ALoca

[fpc-pascal] Re: Generating templates with FPTemplate

2012-07-27 Thread leledumbo
try this: type TMyTemplate = class(TFPTemplate) private procedure ReplaceMyTags(Sender : TObject; Const TagString : String; TagParams:TStringList; Out ReplaceText : String); public constructor Create; end; procedure TMyTemplate.ReplaceMyTags(Sender : TObject; Const TagString : Str

[fpc-pascal] Re: Generating templates with FPTemplate

2012-07-27 Thread leledumbo
Hey, that's nice, Michael. I never think of using TTemplateParser directly as I thought it was meant to be used internally by TFPTemplate only. Now I see that it actually has more features through OO approach instead of event driven. -- View this message in context: http://free-pascal-general.1

[fpc-pascal] Re: File Enumeration speed

2012-07-28 Thread leledumbo
> does the operating system keep an index somewhere ? ls doesn't, find does AFAIK. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/File-Enumeration-speed-tp5710462p5710465.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___

[fpc-pascal] Re: Initialization of class field

2012-07-31 Thread leledumbo
I think the fast point from OP point of view is the less typing, less source code. Not from executable point of view. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Initialization-of-class-field-tp5710475p5710478.html Sent from the Free Pascal - General mailin

[fpc-pascal] Re: printing each Friday the 13 using Pascal

2012-08-06 Thread leledumbo
Converting one of the answers there... uses SysUtils; const StartingYear = 2012; var Year,Month: Byte; Date: TDateTime; begin for Year in [0 .. 5] do begin for Month in [1 .. 12] do begin Date := EncodeDate(Year,Month,13); if DayOfWeek(Date) = 5 then begin WriteLn

[fpc-pascal] Re: printing each Friday the 13 using Pascal

2012-08-06 Thread leledumbo
Sorry, missing one thing: Date := EncodeDate(StartingYear + Year,Month,13); -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/printing-each-Friday-the-13-using-Pascal-tp5710496p5710498.html Sent from the Free Pascal - General mailing list archive at Nabble.com.

[fpc-pascal] GDB 7.4 & FP IDE

2012-08-18 Thread leledumbo
I would like to build FP IDE with debugger support, it's been a long time since I did it (and it was on windows). I've built GDB plainly (simply ./configure), and I have all necessary libraries (python, expat, decnumber, zlib) but upon linking the IDE I got undefined references to those libraries.

[fpc-pascal] Re: GDB 7.4 & FP IDE

2012-08-18 Thread leledumbo
Sorry, please ignore. My 7.4-2012.04 version is detected as 7.5 which doesn't have a define yet in gdbint, I simply copy from 7.4 and it works. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/GDB-7-4-FP-IDE-tp5710850p5710851.html Sent from the Free Pascal - Gen

[fpc-pascal] Re: Assembler file generate by compiler

2012-08-19 Thread leledumbo
> For finding a solution: what does the message from fpc compiler: "Note: Switching assembler to default writing assembler" means exactly? http://www.freepascal.org/docs-html/user/userse70.html AFAIK when -a is given, the internal assembler can't be executed (the internal assembler seems to work

[fpc-pascal] Re: How to avoid namespace name clashes after USES ?

2012-08-21 Thread leledumbo
> Requiring all functions to be allways fully qualified will make the most commom case worse than current implementation just to be better for the uncommon case. This is a step back, not forward... Indeed, and the way unit system works has an advantage: changing entry order / entry name in the

[fpc-pascal] Link against .so generated by ppumove

2012-08-22 Thread leledumbo
I've created a .so from a unit by compiling it to .ppu and .o and then executes ppumove on the .ppu. Now I've got the .so and .ppl (extension specified with -e), how can I tell fpc to link against them instead of the .ppu and .o? I've tried with -XD with no success. -- View this message in conte

[fpc-pascal] FP IDE: Debuggee redirection under Linux

2012-08-24 Thread leledumbo
When I was on Windows, "use another tty for debuggee" works fine. The output gets its own console, and I can debug while watching the output. I'm on Kubuntu now so my terminal is Konsole. If I set /usr/bin/konsole as debuggee, then the program doesn't seem to run (the breakpoint line never gets gre

[fpc-pascal] Re: Identifier not found "result"

2012-08-30 Thread leledumbo
Since this behavior is documented, one should read the documentation first: http://www.freepascal.org/docs-html/ref/refse76.html Anyway, how could one find that Result is used as function result without reading the docs? -- View this message in context: http://free-pascal-general.1045716.n5.na

[fpc-pascal] Re: Identifier not found "result"

2012-08-31 Thread leledumbo
> I question your assumption that "Result" is specifically more important than the other incompatibilities among different modes (i.e. your statement that it "will help...a lot"). I do not say that it is wrong to be more helpful in error messages, but rather that your proposal tries to "fix" a

[fpc-pascal] ELF internal linker state

2012-09-09 Thread leledumbo
I see ELF internal linker is already in the compiler source, how's the current state? Is it usable already? Passing -Xi doesn't seem to call it however. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/ELF-internal-linker-state-tp5711193.html Sent from the Free

[fpc-pascal] Re: Windows installer fails to add fpc binaries to PATH

2012-09-13 Thread leledumbo
I don't even remember the installer ever tries to add something to PATH... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Windows-installer-fails-to-add-fpc-binaries-to-PATH-tp5711238p5711239.html Sent from the Free Pascal - General mailing list archive at Nab

[fpc-pascal] Re: Function for checking correct file name

2012-09-13 Thread leledumbo
Nope AFAIR. Just build one yourself, it's easy. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Function-for-checking-correct-file-name-tp5711212p5711240.html Sent from the Free Pascal - General mailing list archive at Nabble.com. __

[fpc-pascal] Re: using macros

2012-10-01 Thread leledumbo
If you want to port the code to clean Pascal, I suggest using related language feature, e.g. dynamic array. You can't really port that macro (even to a procedure / function), as the first parameter expected is a type name. If malloc returns Pointer, it doesn't need to be casted, the value is compat

[fpc-pascal] Re: using macros

2012-10-02 Thread leledumbo
Those macros are simply to reduce typing, better use true debugger. Even if RTTI can (which I believe not), it would be an abuse of the feature. Macros in FPC aren't as flexible as in C for a purpose IMHO: it's often abused as the way you show. -- View this message in context: http://free-pasc

[fpc-pascal] Re: Seems Delphi is moving to Java-style primitive types

2012-10-17 Thread leledumbo
C# is a full OO language, so I guess yes it's supported. Anyway, Delphi doesn't seem to move toward Java, but Embarcadero is missing Anders' touch. And this is the way they get it for free :p -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Seems-Delphi-is-movin

[fpc-pascal] Re: Questions About Porting Java and Extended Class Syntax Features

2012-11-06 Thread leledumbo
> What is the best way to port 'private static final' member? private class var (assuming you want to declare a variable). > private static final Set = STATIC_SET; static { STATIC_SET = new HashSet; STATIC_SET.Add("A Value"); ... } Static initialization block has no equivalent i

[fpc-pascal] Re: Questions About Porting Java and Extended Class Syntax Features

2012-11-08 Thread leledumbo
> As an aside, I would like to note that after a couple of years away I still see the same contributers in this list, and it is excellent to find that support and commitment. It's not our time yet to retire and hand over the kingdom to the little princes (single 's') out there, as they still need

[fpc-pascal] Re: Can JCF handle Generics?

2012-11-10 Thread leledumbo
It can (modify the parser of course), and AFAIR, in the Lazarus trunk it already handles some. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Can-JCF-handle-Generics-tp5711920p5711924.html Sent from the Free Pascal - General mailing list archive at Nabble.com.

[fpc-pascal] Re: Coverity for FPC?!?

2012-11-13 Thread leledumbo
http://code.google.com/p/delphi-code-coverage/ http://www.peganza.com/ http://www.twodesk.com/castalia/codeanalysis.html -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Coverity-for-FPC-tp5711957p5711958.html Sent from the Free Pascal - General mailing list ar

[fpc-pascal] How to make class constructor body calls descendant's overriden method/property?

2012-11-17 Thread leledumbo
Cross posted from stackoverflow: http://stackoverflow.com/questions/13431079/how-to-make-class-constructor-body-calls-descendants-overriden-method-property I'm writing an ORM framework and got stuck in a way to automatically determine table name from class name. In my base object for the ORM to wo

[fpc-pascal] Re: How to make class constructor body calls descendant's overriden method/property?

2012-11-17 Thread leledumbo
> Tell the user of the framework to do something like this for every > class of your model: > > initialization > TUser.RegisterClass; > TProduct.RegisterClass; > ... > > or > > initialization > RegisterClasses([TUser, TProduct, ...]); Seems like this is the most feas

[fpc-pascal] Re: How to make class constructor body calls descendant's overriden method/property?

2012-11-18 Thread leledumbo
> Both RegisterClass procedures I pointed out are methods of the framework, eg: Yes, I know. I implement it this way now: procedure RegisterClass(AClass: TghModelClass); procedure RegisterClass(AClass: TghModelClass; const AName: String); ... procedure RegisterClass(AClass: TghModelClass); var

[fpc-pascal] Re: mobile application

2012-11-19 Thread leledumbo
Your nokia should be fine, you can create simple J2ME application for your needs. I don't think we have J2ME classes ported yet (CMIIW), so in the mean time using something like MIDletPascal should be OK. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/mobile-a

[fpc-pascal] Re: Complex circular references

2012-11-22 Thread leledumbo
> I still dont understand why FPC doesnt support circular references... There is no way to solve that ? Do you think Delphi or Turbo Pascal or even UCSD Pascal ever supports? The concept of units and uses clause makes the order in which units must be initialized (and how identifier is searched)

[fpc-pascal] Re: bootstrapping from svn

2012-11-25 Thread leledumbo
2.6(.1) fixes should be compilable only from 2.6.0 -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/bootstrapping-from-svn-tp5712111p5712112.html Sent from the Free Pascal - General mailing list archive at Nabble.com.

[fpc-pascal] Re: Registers in loops

2012-12-13 Thread leledumbo
Maybe we don't have such optimization yet? -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Registers-in-loops-tp5712245p5712249.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pasc

[fpc-pascal] Re: Feature announcement: Generic type constraints

2012-12-16 Thread leledumbo
Wonderful, Sven! Now we could have an even better generics feature than Delphi or C++ (forget Java and .NET) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Feature-announcement-Generic-type-constraints-tp5712290p5712295.html Sent from the Free Pascal - General

[fpc-pascal] Re: Feature announcement: Generic type constraints

2012-12-17 Thread leledumbo
> Ehm... you know that AFAIK all those languages have constraints as well? :) Yes, I do ;) > Though if your comment is regarding the possible future developments: of > course :D You got my point -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Feature-announ

[fpc-pascal] Re: CrossFPC is finally released

2012-12-29 Thread leledumbo
> the website was dead for years and still nothing to download Yeah, atm this project was going to die, but I'm surprised that it comes back and release something (first public beta in 7 years since the latest internal release, wow). -- View this message in context: http://free-pascal-general.

[fpc-pascal] Re: CrossFPC is finally released

2012-12-30 Thread leledumbo
lazarus was in beta for that many years, but this project has just got its FIRST beta in many years -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/CrossFPC-is-finally-released-tp5712455p5712461.html Sent from the Free Pascal - General mailing list archive at N

[fpc-pascal] Does FPHTTPServer support Keep-Alive: ON?

2013-01-01 Thread leledumbo
I want to benchmark but the current result looks weird: leledumbo@LeleBuntu:~$ ab -n 10 -c 100 -k http://localhost:2015/ This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foun

[fpc-pascal] Re: Changing variable in conditional

2013-01-08 Thread leledumbo
> I don't like a lot of C++ syntax but this one is interesting. You really don't like it? :) HELL NO! Most C/C++ programmers don't have any idea who will READ and CONTINUE their work, and I'm one of those unlucky person who has to deal with this stupid, error prone, unreadable, worthless "feature"

[fpc-pascal] Re: FPC's broken cross-compiler directory structure?

2013-01-08 Thread leledumbo
I never use [cross]zipinstall so I have no idea about it, make [cross]install produce the correct directory structure. Perhaps you can [cross]install first then manually zip the result. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/FPC-s-broken-cross-compiler

[fpc-pascal] Re: FPC's broken cross-compiler directory structure?

2013-01-09 Thread leledumbo
> Thanks, but that's what the make file appears to do already (crossinstall into a local target which is then zipped). Owh, then it should be correct. My automatic build script installs to correct directory structure for winXX targets... something must be wrong there... -- View this message in

[fpc-pascal] Re: Changing variable in conditional

2013-01-10 Thread leledumbo
> If Pascal /had/ to have some sort of multiple assignment, I'd have thought borrowing an idea from Perl and doing something like [a, b, c] := (d = e); would have been minimally acceptable. I would pick from Lua instead, it looks cleaner. Well... I'll make it stricter though, by making the n

[fpc-pascal] Re: Changing variable in conditional

2013-01-10 Thread leledumbo
> In other words, if the number of elements on both sides of the expression is the same you get a one-to-one correspondence but if the RHS only has a single element it's expanded. That's what I want to avoid because I love Pascal strictness :) -- View this message in context: http://free-pas

[fpc-pascal] Re: fpsystem output

2013-01-15 Thread leledumbo
Crt installs its own driver to control the screen buffer (and it has to be done, no way to escape). You can create your own by using Video unit: http://www.freepascal.org/docs-html/rtl/video/index.html -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fpsystem-ou

[fpc-pascal] Re: Generic + nested type = forward declaration not solved

2013-01-16 Thread leledumbo
Indeed updating FPC is your solution, it compiles in my 2.7.1 revision -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Generic-nested-type-forward-declaration-not-solved-tp5712577p5712579.html Sent from the Free Pascal - General mailing list archive at Nabble

[fpc-pascal] Re: xmlConfig Documentation

2013-01-16 Thread leledumbo
Most of the FCL are currently undocumented, feel free to send patches for documentation. I'm writing myself for some parts. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/xmlConfig-Documentation-tp5712580p5712581.html Sent from the Free Pascal - General mailin

[fpc-pascal] Re: State of fcl-stl generics lib

2013-01-19 Thread leledumbo
No one seems to see: http://bugs.freepascal.org/view.php?id=23654 :( -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/State-of-fcl-stl-generics-lib-tp5712537p5712588.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___

[fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread leledumbo
> I do see another redudancy. gset already has a red-black implementation. (even if it is called a set) Problem: The tree is invisible, it can't be used as a generic red-black tree -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/State-of-fcl-stl-generics-li

[fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread leledumbo
> Indeed, but the additions should follow a common goal and as far as I understood, fcl-stl shall provide opaque containers which is not the case for a tree implementation. I thought a better goal would be to have arbitrary data structures that's commonly used with generic content, and tree is o

[fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread leledumbo
Thanks, Michael. I haven't put the documentation though and I guess since there are a lot of algorithms running on k-ary tree I'll add more... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/State-of-fcl-stl-generics-lib-tp5712537p5712600.html Sent from the Fre

[fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread leledumbo
> Where does the C++ STL expose a tree? It might be used internally by a map or set but I'am not aware of any tree class in the C++ STL. No, no, I was saying this data structure is even missing from C++ stl. In the end, we often need to write again and again that depth first, breadth first, iter

[fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread leledumbo
> For good reasons. As said before a tree is an implementation detail. When having a fully implemented C++ STL one really seldomly needs an explicit tree implementation. Of course, there are special cases which are speed/memory sensitive which require to implement explicitly a tree but in this

[fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread leledumbo
Hmm... I guess fcl-stl has to be renamed to fcl-gcl (generic container library) and we could have another fcl-gdsl (generic data structure library) for different purposes because the name standard template library used as container only library sounds inefficient. -- View this message in context

[fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread leledumbo
> So: A graph is also mathematically defined. And a tree is just a specialized graph. Indeed :) I just realized that if you add an already existing node to other part of my tree such that it create a circular path, you have a graph, and both traversal algorithm will end up in infinite loop! (well

[fpc-pascal] Re: Testing set membership for unicode chars

2013-01-20 Thread leledumbo
if (ucCh >= UnicodeChar('0')) and (ucCh <= UnicodeChar('9')) then dosomething; -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Testing-set-membership-for-unicode-chars-tp5712615p5712616.html Sent from the Free Pascal - General mailing list archive at Nabble.com

[fpc-pascal] Re: interactively draw an ellipse

2013-01-23 Thread leledumbo
Create a backend data structure representing what's on the canvas ATM, then draw them all at OnPaint (clean the canvas first). This way, the temporary object will be kept drawn as it's the same as the final object. You can even modify already drawn object if you want. -- View this message in con

[fpc-pascal] Re: [news] DA-Soft discontinues AnyDAC component suite

2013-01-30 Thread leledumbo
I wonder whether this "Great news" means they're developing something new or what... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/news-DA-Soft-discontinues-AnyDAC-component-suite-tp5712696p5712697.html Sent from the Free Pascal - General mailing list archive

[fpc-pascal] Re: Feature announcement: Type helpers

2013-02-06 Thread leledumbo
Mmm... love it -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Feature-announcement-Type-helpers-tp5712735p5712742.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist

[fpc-pascal] Re: what happened to the "contributed units" listing?

2013-02-07 Thread leledumbo
Bye2 PHP based list, welcome fpweb + ExtJS based list :) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/what-happened-to-the-contributed-units-listing-tp5712743p5712745.html Sent from the Free Pascal - General mailing list archive at Nabble.com. __

[fpc-pascal] Re: Tree structure

2013-02-13 Thread leledumbo
Ah... finally somebody needs it. Please use the gtree unit, I would like to see whether it's really worth developing the unit for other people (than myself) :) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Tree-structure-tp5712850p5712887.html Sent from the F

[fpc-pascal] Re: optimisation v2.2.2

2013-03-01 Thread leledumbo
FPC optimizations have never been aggressive, despite the trunk has several new optimizations with -O4. Since you're stuck with 2.2.2, and your problem is on string operation*, I don't think there's anything else you can do. Note that those -O thing won't suddenly boost your code, there are many fa

[fpc-pascal] Re: fpc registry unit

2013-03-01 Thread leledumbo
http://svn.freepascal.org/svn/fpc/trunk/packages/fcl-registry/src/ -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/fpc-registry-unit-tp5713265p5713266.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _

[fpc-pascal] Re: fpc registry unit

2013-03-01 Thread leledumbo
> Registry is not part of rtl because it's not a base unit??? This is my point it uses 200 other f*** units that aren't really needed! YOU don't use those 200 units, but the UNIT YOU USE needs them. Get the point? Even though you don't, what about other people? FPC is not released just for you, du

[fpc-pascal] Re: warning: link.res contains output sections; did you forget -T?

2013-03-04 Thread leledumbo
OOT: How to try the new internal linker? -Xi doesn't seem to trigger it. I see in the changelog it works on *BSD, does it work on linux? -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/warning-link-res-contains-output-sections-did-you-forget-T-tp5713334p5713343

[fpc-pascal] Re: Get error information

2013-03-05 Thread leledumbo
If the 2nd program is FPC program and is compiled with -gl, then upon crash StdErr will contain the runtime erorr information. 1st program can read that when the 2nd program dies. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Get-error-information-tp5713366p5

[fpc-pascal] Re: Get error information

2013-03-05 Thread leledumbo
You'll get it if you do as I say (compile 2nd program with -gl, up to all units you want the error line information from) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Get-error-information-tp5713366p5713372.html Sent from the Free Pascal - General mailing li

[fpc-pascal] Re: Get error information

2013-03-06 Thread leledumbo
If you execute with TProcess, it's in... err... StdErr property. Otherwise, I have no idea. It would be dependant on how you execute... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Get-error-information-tp5713366p5713399.html Sent from the Free Pascal - Gene

[fpc-pascal] Re: Get error information

2013-03-07 Thread leledumbo
> How to read the information? You can take a look at the wiki article Executing External Programs, substituting Output property with StdErr. Or if you use FPC 2.7.1, you can see how RunCommand*** functions are implemented. Same as above article, subsitute Output with StdErr. > Ist stderr equal w

[fpc-pascal] Re: Selective Class Helper

2013-03-13 Thread leledumbo
That would change the class model to prototyping (as in Lua, JavaScript, etc.), which is not how it's implemented in Object Pascal... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Selective-Class-Helper-tp5713531p5713545.html Sent from the Free Pascal - Gener

[fpc-pascal] Re: a proposal about "with" syntax

2013-03-16 Thread leledumbo
> PS. I can't believe Embarcadero went for ":" instead of "=" for declaring bounded/restricted generics :-/ That's correct, since : means "of type" in a declaration. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/a-proposal-about-with-syntax-tp5713601p57136

[fpc-pascal] Re: Fork

2013-03-18 Thread leledumbo
oldlinux unit has been long deprecated. Use fpFork from BaseUnix as replacement: http://www.freepascal.org/docs-html/rtl/baseunix/fpfork.html -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Fork-tp5713675p5713677.html Sent from the Free Pascal - General mailing

  1   2   3   4   5   6   7   8   >