Re: [fpc-pascal] FPC fpGUI runs happily under OpenSolaris 2010.03

2011-07-29 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: highlighting before, it's a nice challenge. It is rather a nightmare if you ask me... Definitely. There are so many things one takes for granted in a programming editor. A lot more work than I expected. [then again, what isn't] Hehe,

Re: [fpc-pascal] FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

2011-07-29 Thread Marco van de Voort
In our previous episode, Marcos Douglas said: I got an error trying to compile FPC 2.5.1 (trunk at revision: 18036) on WinXP-SP3. Before update, I ran 'make distclean'. Compiling src\base\custfcgi.pp PPU Loading W:\md\dev\freepascal\compiler\2.5.1\packages\fastcgi\units\i386-win3

Re: [fpc-pascal] FPC 2.5.1 (trunk rev 18036): Can't find unit fastcgi used by custfcgi

2011-07-29 Thread Marco van de Voort
In our previous episode, Marcos Douglas said: 1) manually delete the .ppu's in packages that have this problem ( I ran del /s *.ppu ?and *.o in packages/) 2) delete all old fpmake.exe ?(del /s fpmake.exe in packages/) Ok, thanks, worked! But why this? In some packages in 2.5.1, fpmake

Re: [fpc-pascal] Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How?

2011-08-01 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: The information on the FPC wiki and elsewhere in the lists is woefully out of date. In general, this is not supported (and personally I've never done it). You have to build an Apple tool chain (assembler, linker) on a Linux host, which is not

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Marco van de Voort
In our previous episode, Andrew Brunner said: username/sessionID, then send an empty sessionID cookie (this will delete the sessionID cookie in client) I agree with this one. The only thing I could add would be AJAX WebSockets for really advanced applications. I thought websockets were

Re: [fpc-pascal] FPImage and WebP support

2011-08-03 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: Not yet. But it looks very interesting. It does indeed. I'm continuing work on adding FPImage support to fpGUI, and was curious about WebP because I read an article on it recently. If you look around a bit you see also a lot of criticism.

Re: [fpc-pascal] x86-64 vs x86_64 vs x64

2011-08-03 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: I searched the FPC Programmer's Guide and Users Guide, and nowhere is there a definitional of description explaining the difference. So here is to anybody that knows: What is the difference between a target x86-64, target x86_64 and a target

Re: [fpc-pascal] FPImage and WebP support

2011-08-03 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: Google's tests, and the incompleteness of the reference implementation. ... And of course browser support is still seriously lacking. None the less it is still interesting. Google trying to bring a new image format into today's times - it

Re: [fpc-pascal] web app and application persistency

2011-08-03 Thread Marco van de Voort
In our previous episode, Andrew Brunner said: The only thing I can think of would be packet inspection. Firewalls included with Linux and Windows do not perform deep packet inspection. They only allow/deny packets with specific ports over either TCP or UDP. Usually they deny all ports by

Re: [fpc-pascal] Re: FreePascal as an embedded language in Firebird: possible and desirable?

2011-08-09 Thread Marco van de Voort
In our previous episode, Jim said: requests to keep track of things: Firebird issue/feature request: http://tracker.firebirdsql.org/browse/CORE-3571 FreePascal issue/feature request: http://bugs.freepascal.org/view.php?id=19946 IMHO this FPC tracker item is totally open ended, and it is

Re: RE : RE : RE : [fpc-pascal] Re: RE : RE : RE : Assigning value toftVariantdatatype varbytes-still stuck

2011-08-14 Thread Marco van de Voort
In our previous episode, Ludo Brands said: PS: no misunderstanding. I'm volunteering to make these changes;) I'd be happy to help with testing at least! Sorry mate. No reaction. Everybody seems to be happy with the current implementation. Under these circumstances, I'm not going to

Re: RE : RE : RE : RE : [fpc-pascal] Re: RE : RE : RE : Assigningvalue toftVariantdatatype varbytes-still stuck

2011-08-14 Thread Marco van de Voort
In our previous episode, Ludo Brands said: Your remarks really hurt my motivation to look at those bugreports at all. That and the fact that I spent a holiday week closing quite some goes unnoticed. Marco, all my excuses if you felt my message suggested I was pointing in your

Re: [fpc-pascal] Is such memory statistics possible?

2011-08-15 Thread Marco van de Voort
In our previous episode, Max Vlasov said: about collecting some statistics. The idea is similar to some disk utilities that collects and sort the sizes of directories. You know when every folder on the computer is scanned and all the resulting paths are sorted by the summed size. Such

Re: [fpc-pascal] FPC i386 and x86_64 using the same source

2011-08-24 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: I just searched all my PDF docs for FPC, and couldn't find a single reference to 'crossinstall' anywhere. :-( The FPC documentation does not document building FPC itself, that is what the buildfaq is for (although apparently it doesn't mention

Re: [fpc-pascal] FP IDE - jump to implementation

2011-08-27 Thread Marco van de Voort
In our previous episode, Tomas Hajny said: Is there a keyboard shortcut for FP IDE (text IDE included with FPC) to jump from the interface section to the implementation section of a method. No. As far as I know, it does not have any functionality to parse the structure of the source

Re: [fpc-pascal] 2 bugs ???Q

2011-09-07 Thread Marco van de Voort
In our previous episode, Yann Bat said: I am trying to learn freepascal generics and I think that I have found 2 bugs. var V: TGenInt; begin V.Create(589); This is no pascal way of creating a class. Use v:=tgenint.create; ___ fpc-pascal

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-08 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: I can't really answer you regarding why ExecuteProcess doesn't work. But just wanted to ask: Have you thought of trying TProcess instead? I normally execute any external programs via TProcess with good results - no matter the platform. The

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-08 Thread Marco van de Voort
In our previous episode, brian said: What's driving me crazy is that running the two commands via ExecuteProcess does the first step OK, but oggenc fails with an exit code of 1, operation not permitted. If I replace the ExecuteProcess with a call to fpSystem, concatenating the

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-08 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: The inner plumbing of executeprocess and tprocess should be the same. TProcess just has several options (shell and piping) I thought of that, right after I sent my message. But maybe there is a slim chance that he is simply not using

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-08 Thread Marco van de Voort
In our previous episode, Anton Shepelev said: In the case of ExecuteProcess() parameter separation takes place on FPC side, while with fpSystem() the shell is responsible for it. Executeprocess has two forms. One does parameter separation, and one not, and directly passes the separated

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-09 Thread Marco van de Voort
In our previous episode, brian said: write a batch file for the actual conversions. What are the commands? mpg321 -q -w tempfile.wav inputfile.mp3 oggenc -Q --output=outputfile.ogg tempfile.wav between the ExecuteProcess and fpSystem calls, I just commented out the one I wasn't

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-09 Thread Marco van de Voort
In our previous episode, Anton Shepelev said: TProcess: If the command to be executed or any of the arguments contains whitespace (space, tab character, linefeed character) it should be enclosed in single or double quotes. It should now be possible to

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-09 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: You must remove the quotes around 'outputfile.org': Status:=ExecuteProcess('/path/to/oggenc',['-Q','--output=outputfile.org','tempfile.wav']); While better, this is afaik not required per se, the executing binary can strip them

Re: [fpc-pascal] How does fpc Makefiles generate paths?

2011-09-13 Thread Marco van de Voort
In our previous episode, leledumbo said: I don't want to maintain two separate tools, so I use unix tools from msys to build FPC. Since a few latest release, the tools no longer produce path in windows style (e.g. c:/folder/), but in unix style (e.g. \c\folder\). This causes failure when

Re: [fpc-pascal] Linux - ExecuteProcess versus fpSystem

2011-09-17 Thread Marco van de Voort
In our previous episode, cobines said: I have created issue # 0020279. If this must be like shell quoting These routines were never meant to be shell quoting (which is silly since it is a Runtime lib call, not a shell). I also don't see the point why it should be expanded to do shell

Re: [fpc-pascal] How to do conditional compilation with macros

2011-09-18 Thread Marco van de Voort
In our previous episode, Fl?vio Etrusco said: http://delphi.wikia.com/wiki/FreePascal_detection_and_versioning a typical usage: {$if FPC_FULLVERSION 20204} ? // means greater than 2.2.4 here ?{$ifndef} Not wanting to hijack the thread but, why isn't there a way to print macro

Re: [fpc-pascal] Hints on getting FPDocs to work on Linux

2011-09-18 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said: total Latex newbie here Any hints on which packages to install on Debian Squeeze (current stable) or which files are required so I can try generating some FPDocs content? Something like aptitude install texlive tex4ht python-plastex hevea

Re: [fpc-pascal] [Semi-OT] Git format patches don't seem to work

2011-10-04 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said: Having some trouble creating patches that actually work. (On Windows) I've been using git to get FPC trunk and git diff --no-prefix %temp%\mypatch.diff rem --no-prefix : Do not show any source or destination prefix. to create patches. I

Re: [fpc-pascal] Reading and writing char

2011-10-06 Thread Marco van de Voort
In our previous episode, Thomas Young said: For some reason I'm not able to read and write ascii characters above ascii 127 with FPC. Can someone explain this to me? This is very logical, since ASCII only defines +/- 127 chars. The upper 128 were used for vendor specific characters (aka

Re: [fpc-pascal] Git line endings leading to patch problems - was [Semi-OT] Git format patches don't seem to work

2011-10-07 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: So while it could be used, I'd have to remember to run unix2dos over it - that is, if people expect a Windows patch ( I don't think that is needed. I believe the 'patch' program will sort that out by itself. I have sent numerous patches to

Re: [fpc-pascal] Git line endings leading to patch problems - was [Semi-OT] Git format patches don't seem to work

2011-10-07 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: Even up to date patch doesn't always process lineendings properly btw. I have to dos2unix often on *nix too. Interesting. I would think sharing code between platform with patches is a bog-standard task these days, and all tools in question

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Marco van de Voort
In our previous episode, Andrew Pennebaker said: Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In future versions, can fpc treat shebangs as comments so that instantfpc code could be compiled like normal Free Pascal code? I'm not sure that went into 2.4.4 at the same

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: Yeah, I know to chmod my scripts before dot-slashing them. It's just that fpc can't handle shebangs, and I don't want to have to choose either scripting or compiled. I like my Pascal code to be work in either mode. It's always

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Marco van de Voort
In our previous episode, Andrew Pennebaker said: Good idea, van de Voort. Can someone confirm that fpc plays nicely with shebangs in a version after 2.4.4? I just tried, and it doesn't. I assume that it was talked about and got stuck in my mind, but it never really was implemented. And

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

2011-10-17 Thread Marco van de Voort
In our previous episode, Andrew Pennebaker said: 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. There is no built in list type, generic or not, and no way to define new operators. All

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

2011-10-19 Thread Marco van de Voort
In our previous episode, Sven Barth said: This implementation will result in crashes if T is a reference-counted type. Right... I tend to forget about these... what would the correct way to copy an array of ref counted types? E.g. an array of string? copy () ? :-)

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

2011-10-19 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: Right... I tend to forget about these... what would the correct way to copy an array of ref counted types? E.g. an array of string? For-loops. copy () ? :-) copy() cannot be used to concatenate two arrays, because it is a function

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

2011-10-19 Thread Marco van de Voort
In our previous episode, Sven Barth said: Right... I tend to forget about these... what would the correct way to copy an array of ref counted types? E.g. an array of string? copy () ? :-) I thought about copy, too, but how would you implement a generic concat using copy (or even

Re: [fpc-pascal] 3-tier database applications with FPC

2011-10-19 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: Just over 3 years ago I asked about FPC support for creating 3-tier database applications. The answer was basically: it's not possible (unless you roll your own Midas / Datasnap code). - kbmMW http://components4developers.com/ the author was

Re: [fpc-pascal] Why do string indices start at 1, but array indices start at 0?

2011-10-21 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: During compilation, by statically checking the indices used to access the string, the compiler could fire a warning (or error?) if a string[0] is found. The compiler already does that (except for shortstrings, where string[0] is valid). Isn't

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-10-21 Thread Marco van de Voort
The link below describes two uses for anonymous methods. http://stackoverflow.com/questions/7818759/delphi-anonymus-methods-pro-and-cons-good-practices-when-using-closuresanony/7821882#comment9576663_7821882 I don't entirely subscribe to the (1) one, it seems to be mostly a shorthand argument.

Re: [fpc-pascal] How are Assigned, Free, Nil and Destroy related?

2011-10-22 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: Nil is not a routine, it is a value, it means that the object is empty, it does not exist / is not allocated. Nil in existing implementations that I know is represented by the value zero. Look better in, euh, Free Pascal, and see what

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: Ok, now I want to insert a record in my table and I would like to obtain the auto-generated PrimaryKey This is a classic problem, since SQL simply doesn't support this. So all DBs do something else, for postgresql there are sequence

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-22 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: Ok, now I want to insert a record in my table and I would like to obtain the auto-generated PrimaryKey This is a classic problem, since SQL simply doesn't support this. So all DBs do something else, for postgresql there are

Re: [fpc-pascal] Indy 10 HTTP Server component with FPC

2011-10-22 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: Is anybody here using the Indy 10 components with FPC? More specifically, the HTTP Server component. My project compiles fine, but when I activate the HTTP Server I get the following error. Socket error # 98. Address already in use. I know

Re: [fpc-pascal] Indy 10 HTTP Server component with FPC

2011-10-22 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: designtime that went away if you manually added a tidbinding in formcreate. I'm not using design-time usage at all, everything is done manually via code. I'm creating a TIdHTTPServer instance via code, set the port, one basic event handler,

Re: [fpc-pascal] FPC has multiple HTTP server components

2011-10-23 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: fcl-net/src/httpsvlt.pp(THTTPServer component) This one is deprecated. It was originally developed to create servlets for XML-RPC. I will remove it. deprecate it first, then we'll merge the deprecation to 2.6.0, and people have a

Re: [fpc-pascal] How to insert a record and get the primary key with sqldb?

2011-10-24 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: I consider this bad advice. GUID are bad primary keys, because of their size and the fact they are not sequential by design. You just discarded most Microsoft product designs =-) They use GUIDs all over the place :-) At least they

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-10-25 Thread Marco van de Voort
In our previous episode, t...@free.fr said: it will be more readable (imo)? The example still does not take This seldom happens, but here I fully agree with Florian. ;-) Every example of anonymous methods I have seen so far, can easily be done with OP's procedure variables too. Maybe

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-10-25 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: targethread.queue( procedure(targetobject:ttargetobject;a:integer;b:someobject;c:string) begin targetobject.destinationprocedure(a,b,c); end; Note how common this looks compared to

Re: [fpc-pascal] A linking error when compiling with FPC 2.4.4

2011-10-31 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: finer. (-dyn and static in separate packages, so that the static one alone gets the dependency. Lazarus then only depends on the dyn packages). That would be a regular nightmare, because there are many packages that depend on fcl-db,

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-11-05 Thread Marco van de Voort
In our previous episode, Bernd said: Equivalent solution with anon functions: targethread.queue( ? procedure(targetobject:ttargetobject;a:integer;b:someobject;c:string) ? ? ? ? ? ? ?begin ? ? ? ? ? ? ? ?targetobject.destinationprocedure(a,b,c); ? ? ? ? ? ? ?end; shouldn't this be

[fpc-pascal] Free Pascal 2.6.0rc1 released

2011-11-05 Thread Marco van de Voort
Hello, We have placed the first release-candidate of the Free Pascal Compiler version 2.6.0 on our ftp-servers. You can help improve the upcoming 2.6.0 release by downloading and testing this release. If you want you can report what you have done here: http://wiki.freepascal.org/Testers_2.6.0

Re: [fpc-pascal] Free Pascal 2.6.0rc1 released

2011-11-06 Thread Marco van de Voort
In our previous episode, Luiz Americo Pereira Camara said: ftp://freepascal.stack.nl/pub/fpc/beta/2.6.0-rc1/ Cant download 550 /pub/fpc/beta/2.6.0-rc1/: Permission denied. Fixed. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Free Pascal 2.6.0rc1 released

2011-11-06 Thread Marco van de Voort
In our previous episode, J?rgen Hestermann said: version 2.6.0 on our ftp-servers. Here some issues I found: The text mode IDE states under Help: Copyright (C) 1998-2009 by... Shouldn't this be 1998-2011? I will correct that. When I now try to compile a short test program with the

Re: [fpc-pascal] Re: Free Pascal 2.6.0rc1 released

2011-11-06 Thread Marco van de Voort
In our previous episode, Seth Grover said: We have placed the first release-candidate of the Free Pascal Compiler version 2.6.0 on our ftp-servers. Congratulations! That's an impressive list of new features. I've been anticipating this release for some time. A couple of questions: where

Re: [fpc-pascal] What is the difference between the declarations at the beginning of a class and those declared in the public section?

2011-11-07 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: Correct, but that is what Borland, CodeGear, Embarcadero and Lazarus call RAD development. I consider RAD just great for prototyping, not for real-world apps that need to be maintaing my many programmers over a decade or two. RAD promotes a lot

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-11-07 Thread Marco van de Voort
In our previous episode, Martin Schreiber said: So probably there are at least two different expectations into FPC which can't be fulfilled both: best general purpose software development environment ever and 100% current Delphi compatibility. That current is added by you. FPC strives to

Re: [fpc-pascal] Re: Delphi's anonymous functions in Free Pascal

2011-11-08 Thread Marco van de Voort
In our previous episode, Martin Schreiber said: nice to have), so please all core developers, stop using that as an excuse to stop other FPC innovation. Over the years I have heard many features being declined because they will not be delphi compatible. I fear the opposite: all Delphi

Re: [fpc-pascal] Location of fpvectorial

2011-11-10 Thread Marco van de Voort
In our previous episode, Torsten Bonde Christiansen said: I'm rather confused about the location of fpvectorial, since I can find it in several places. I'm using fpc 2.4.4 and trunk of Lazarus, and fpvectorial exists both places but with different setups. The wiki page states to

Re: [fpc-pascal] Is there a bug in TStrings.Delimiter handling?

2011-11-21 Thread Marco van de Voort
In our previous episode, Frank Church said: adapterVals: TStringList adapterVals.Delimiter := ';'; adapterVals.DelimitedText := '192.168.1.2,00:0E:08:E0:7C:ED,Word Space'; adapterVals[0] = '192.168.1.2' adapterVals[1] = '00:0E:08:E0:7C:ED' adapterVals[2] = 'Word' - this should be 'Word

Re: [fpc-pascal] Re: Indy example returns Runtime Error (211)

2011-11-22 Thread Marco van de Voort
In our previous episode, Frank Church said: Any ideas? Any updates? I don't know if I have to subclass or derive something to avoid this error. I will post some sample code for testing. Did you look into my suggestion on the forum to try to add a binding to the bindings property ? IIRC

Re: [fpc-pascal] Name of a var

2011-11-22 Thread Marco van de Voort
In our previous episode, Sven Barth said: is more work than VarName:='counter'; So what's the point ? The best argument for such a feature is that the name is checked by the compiler. If I change the declaration of the variable the compiler will complain in the first case, but not

Re: [fpc-pascal] Name of a var

2011-11-22 Thread Marco van de Voort
In our previous episode, Martin said: And as I already wrote, why re-invent the wheel? Use published properties of an object, instead of variables. They have RTTI, so they can already do all of this. D2010 has RTTI on much more. ___ fpc-pascal

Re: [fpc-pascal] fpc can't compile project because a directory exists

2011-11-24 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: I just tried to compile a test.pp file inside my /tmp directory. FPC complained because there existed a /tmp/test/ directory!! Why is that strange? Is this a normal or known limitation of FPC? Or does the blame fall onto the ld linker? I'm

Re: [fpc-pascal] Free Pascal 2.6.0rc1 released

2011-11-24 Thread Marco van de Voort
In our previous episode, Bernd said: The branch fixes_2_6 still has the version 2.5.1. shouldn't this be set to 2.6.0-RC1.1? No. Only releases have even version numbers (RC or not). Thats why I wrote RC1.1 to solve this dilemma, to give it an odd number between RC1 and RC2. There have

Re: [fpc-pascal] Heap, Stack, HeapTrc and threads

2011-11-24 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: I've never seen any reports of heaptrc failing to report memory leaks. Most likely, your problems stem from internal heap fragmentation rather than from memory leaks. Such problems can usually be solved by using the cmem unit, which falls back

Re: [fpc-pascal] Free Pascal 2.6.0rc1 released

2011-11-27 Thread Marco van de Voort
In our previous episode, Bernd said: If people are so easily confused, they should stay away from development branches. This is supposed to be a stable branch Only after 2.6.0. Though the situation is not really different for a .2 or .4 release, only shorter. and there is no need for

Re: [fpc-pascal] Free Pascal 2.6.0rc1 released

2011-11-27 Thread Marco van de Voort
In our previous episode, Bernd said: That makes sense, but you are in a wrong branch then. I wanted to switch down one gear, not two. What would be the correct 2.6 stabilizing/soon-to-become-stable branch if this is the wrong one? 2.6.0rc1 is the newest there is on the 2.6 branches.

Re: [fpc-pascal] The strange case of arm-linux-ld: skipping incompatible

2011-11-27 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: Browse through the below thread, mainly my and Jonas posts: http://lazarus.freepascal.org/index.php/topic,8084.msg57377.html#msg57377 ___ fpc-pascal maillist -

Re: [fpc-pascal] FPC for ARM

2011-11-29 Thread Marco van de Voort
In our previous episode, Thomas Schatzl said: What OS/version are you using? Maybe some OS setup issue? On an HP Touchpad and a Sheevaplug-like system, which are both eabi5, the bootstrap compiler and fpc produced executables work just fine. (Sheeva's are shipped with a default eabi4,

Re: [fpc-pascal] FPC for ARM

2011-11-29 Thread Marco van de Voort
In our previous episode, Felipe Monteiro de Carvalho said: juha.mannine...@gmail.com wrote: I don't even know what means?eabi4 and?eabi5. I'm not sure what it means exactly either, but for example Android no longer supports eabi 4, so it looks obsolete. I use eabi 5 for my Android

Re: [fpc-pascal] How to read TDOMNode attributes

2011-12-04 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: The method in question is the TDomNode.Attributes.Length property. I thought something like that shoud exist but I was looking for a Count property. Shouldn't it be count instead? Talk about not being very intuitive. As I mentioned in

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-08 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: And what about people using FPC only and depending on our Random being statistically strong, they are less important then theorical Delphi migrants? [like what was told to me numerous times before] They (FPC users) should speak up now, or

Re: [fpc-pascal] Re: Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-09 Thread Marco van de Voort
In our previous episode, Dimitri Smits said: Randomize() is supposed to be called only once to seed the generator with an initial value. If you made it something like so: begin for i := 0 to 1000 do begin randomize(); pixel[random(screenwidth),random(screenheight)]:=

Re: [fpc-pascal] Why is Random(255) some 529x slower compared to Delphi 7?

2011-12-09 Thread Marco van de Voort
In our previous episode, Reimar Grabowski said: Like people already said, lots of talk about a 'problem' that 10 years noone has seen as one. (it's afaik not the first. Has been noticed once or twice before. But those people used it in unittests, and simply changed without much ado when the

Re: [fpc-pascal] How to poll for a byte in Input?

2011-12-09 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: Is there a way to ask whether the input stream is not empty, without waiting and without using threads/processes? And, in addition, is there an OS-independent way (linux, windows)? something like: var inputStream: THandleStream;

Re: [fpc-pascal] IInterface type value and the as keyword

2011-12-11 Thread Marco van de Voort
In our previous episode, Honza said: after a long pause I'm trying to revive some code which I didn't touch as long as early this year. At that time it compiled OK with trunk FPC (I believe version 2.5.1). Early that year 2.5.1 was trunk yes. That same code is now the future fixes branch for

Re: [fpc-pascal] debian control files for fpc

2011-12-19 Thread Marco van de Voort
In our previous episode, David Emerson said: and, putting that debian directory into my own source directory... (which I got from sourceforge, http://sourceforge.net/projects/freepascal/files/Source/2.4.4/fpc-2.4.4.source.tar.gz) You need the fpcbuild archive that is in the same location

Re: [fpc-pascal] FPC for ARM

2011-12-19 Thread Marco van de Voort
In our previous episode, Thomas Schatzl said: Does it mean an assembler is always needed with ARM? In my understanding x86 based PCs don't need a separate assembler with FPC. apt-get install as didn't install anything. Afaik only the Windows platforms have an internal assembler and

Re: [fpc-pascal] using exceptions

2011-12-19 Thread Marco van de Voort
In our previous episode, ik said: But we use exceptions even on places such as StrToInt, when the string is not an integer number, but we can expect to either have a number or something else. So why use an exception there ? Because much used routines like strtoint are often used without proper

Re: [fpc-pascal] FpGetRLimit and FpSetRLimit reference an undefined symbol

2011-12-21 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: undefined reference to `FPC_SYSC_GETRLIMIT' Yes, it seems like a missing public alias for the FpGetRLimit function in the Linux system unit. I added it. ___ fpc-pascal maillist -

Re: [fpc-pascal] Contributed units on freepascal site

2011-12-22 Thread Marco van de Voort
In our previous episode, dhkblas...@zeelandnet.nl said: The location of the page changed, and there's an alternative link available on the front page of http://www.freepascal.org [2] under Contributed units. Well, that is exactly the link I'm talking about. Clicking on this link will

Re: [fpc-pascal] Contributed units on freepascal site

2011-12-22 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: The location of the page changed, and there's an alternative link available on the front page of http://www.freepascal.org under Contributed units. While we are there. The Toolbox sponsor logo on the right. The Toolbox Magazine has been

Re: [fpc-pascal] FPC for ARM

2011-12-22 Thread Marco van de Voort
In our previous episode, Juha Manninen said: I ran apt-get install binutils in the already installed Ubuntu and it worked. I have understood ARM also supports many instruction sets like Thumb and Thumb-2. I have no idea which one is running now, but it is not important because it works.

Re: [fpc-pascal] where are the sources for rtl.chm, fcl.chm ref.chm etc.?

2011-12-24 Thread Marco van de Voort
In our previous episode, Bernd said: I am trying to build the chm help files (rtl, fcl, and ref) from source (to use them with Lazarus) and cannot find find them anywhere. I have found downloads of ready made chm files for rtl and fcl but I don't know how to build them myself and also I am

Re: [fpc-pascal] Problems with fpdoc

2012-01-02 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: the same directory as the .xml file is and from where the chm file is generated from. All relevant files and scripts are in SVN. CHM ? This is for Marco. I don't think it differs from html. Some questions that come to mind:

Re: [fpc-pascal] Adding code indentation without Lazarus

2012-01-02 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: My editor is Gedit. In Linux, there are not lots of accessible editors. For this reason, I don't think I will get a plugin to do it for me. So I ask: Does someone know a commandline tool that indents the code automatically?

Re: [fpc-pascal] Problems with fpdoc

2012-01-02 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: Upon reading, my first guess would be that either that specification how paths are transformed is murky (and it just happens to work with latex), or some transformation is missing in this specific case. Nono, when implementing I

Re: [fpc-pascal] Re: Installing FPC 2.5.1 in Mac OS X

2012-01-05 Thread Marco van de Voort
In our previous episode, shiruba2012 said: I had the same issue when specifying a specific compiler in Lazarus. I changed the directory back to /usr/local/bin/ppc386 and it worked fine. I almost created another SymLink (as you did), and since that obviously works as well, the issue

Re: [fpc-pascal] Re: Installing FPC 2.5.1 in Mac OS X

2012-01-05 Thread Marco van de Voort
In our previous episode, Vincent Snijders said: Well, aside from installing different compilers in different prefixes (what I usually do), yes. I would file a bug, and see how Laz devels see it. I'd say it is a compiler bug, because the compiler doesn't look in the right places, does

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-06 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: On a side note, 1) for overloaded functions it seems that only one result string is possible to define. As seen in the XML file:(no desitinction based on result type) Correct. See also

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-06 Thread Marco van de Voort
In our previous episode, dhkblas...@zeelandnet.nl said: See also http://bugs.freepascal.org/view.php?id=14843 Could XML attributes be used to distinguish overloaded functions? eg element name=UIContext.doButton.Result short result=booleanboolean result/short short

Re: [fpc-pascal] Re: FPCUnit without Lazarus

2012-01-08 Thread Marco van de Voort
In our previous episode, Luciano de Souza said: Now, I understand. FPCUnit and FPCRegistry do not have LCL dependences. What depends on LCL is the runner called Console Runner. This name make me confused! In package/fcl-fpcunit/src/demo/consolerunner there is a runner that is not LCL

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Marco van de Voort
In our previous episode, Tomas Hajny said: TSortedCollection (as provided in unit objects). The classes unit also has a TCollection, which can be sorted on any field of the collection items ? When looking at it, using or descending Classes.TCollection for simple data records seemed

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread Marco van de Voort
In our previous episode, Tomas Hajny said: BTW, the supplied HTML docs cannot be used if installing onto FAT with OS/2 due to the 8.3 restrictions (not that I'd expect you to use FAT with your OS/2 unless having very good reasons, just for completeness sake ;-) ). We really should switch

Re: [fpc-pascal] sorting and merging array of records

2012-01-15 Thread Marco van de Voort
In our previous episode, Tomas Hajny said: Well, I just played with using CHMs with FP IDE under OS/2 and realized that I get a nice immediate SIGSEGV when using the context help with the CHM help files, Hopefully fixed. Somehow the documentation generated empty topic titles all of a

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-15 Thread Marco van de Voort
In our previous episode, J.-c. Chu said: Frankly, every new feature will be a mere increase of complexity if you reject learning about it. There is a listing, despite not up-to-date, of new language features since Delphi 7, at http://edn.embarcadero.com/article/34324. Not all of them are

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-15 Thread Marco van de Voort
In our previous episode, J.-c. Chu said: The attached file does not compile in my trunk-version compiler. As Sven already said, that example doesn't compile in Delphi either. Embarcadero Delphi for Win32 compiler version 22.0 Copyright (c) 1983,2010 Embarcadero Technologies, Inc. xxx.dpr(8)

Re: [fpc-pascal] MySQL5

2012-01-17 Thread Marco van de Voort
In our previous episode, michael.vancann...@wisa.be said: There are only examples for 3 and 4, so I started with testdb4.pp and adapted it. It turned out that the MYSQL record is missing some new fields, so the mysql_init overwrites the memory behind. After adding some dummy bytes at the

  1   2   3   4   5   6   7   8   9   10   >