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

2011-07-29 Thread Graeme Geldenhuys
Hi Mark, On 29 July 2011 08:49, Mark Morgan Lloyd wrote: Well done and thanks for testing. If you have any thoughts please could you append them to the wiki page I'll take a quick read through that wiki page and see if there is anything I can add. The compiling and running of fpGUI based apps

Re: [fpc-pascal] FPC release for Solaris not available on SF

2011-07-29 Thread Graeme Geldenhuys
On 29 July 2011 09:29, Michael wrote: Someone in the core team with access to Sourceforge should probably upload it. OK, I'll post in the fpc-devel mailing list. -- Regards,   - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit

Re: [fpc-pascal] FPC release for Solaris not available on SF

2011-07-29 Thread Graeme Geldenhuys
On 29 July 2011 10:34, Mark Morgan Lloyd wrote: Assuming that Graeme is referring to Intel-architecture Solaris here, is Yes, sorry for my incomplete message. I am referring to Solaris x86 platform release. -- Regards,   - Graeme - ___ fpGUI -

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

2011-07-29 Thread Graeme Geldenhuys
On 29 July 2011 10:01, Martin Schreiber wrote: @Martin Schreiber Just curious. Have you tried to compile MSEide on platforms other than Linux or Windows? No. I just tried under OpenSolaris. There was some compiler errors. Basically some {IFDEF Linux} I had to change to {IFDEF unix} when

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

2011-07-29 Thread Graeme Geldenhuys
On 29 July 2011 10:38, Martin Schreiber wrote: the TfpgTextEdit component. I've never written an editor with syntax 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

[fpc-pascal] FPImage and WebP support

2011-08-01 Thread Graeme Geldenhuys
Hi, Has anybody started work on supporting WebP image format for FPImage? http://code.google.com/speed/webp/ Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___ fpc-pascal

Re: [fpc-pascal] FPImage and WebP support

2011-08-03 Thread Graeme Geldenhuys
On 1 August 2011 15:09, Michael Van Canneyt wrote:  http://code.google.com/speed/webp/ 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. -- Regards,   -

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

2011-08-03 Thread Graeme Geldenhuys
On 1 August 2011 16:32, Michael Van Canneyt wrote: If you really want the application running 100% of the time, there are only 2 options: - fastcgi with mod_fastcgi (NOT mod_fcgid) and ExternalFastCGIServer option. - Embedded server (i;e. the application acts as a webserver). ...and option

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

2011-08-03 Thread Graeme Geldenhuys
Hi, 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 x64? eg: Here is the output of my FPC compiler

[fpc-pascal] Best optimizations for Intel Quad Core CPU

2011-08-03 Thread Graeme Geldenhuys
Hi, I know when deploying an application, it is always best to be conservative with the compiler optimization options - thus your application can run on most CPU's out there (maximum compatibility). But what is the best optimization options I can specify for my own system. This includes FPC

Re: [fpc-pascal] FPImage and WebP support

2011-08-03 Thread Graeme Geldenhuys
On 3 August 2011 11:36, Marco van de Voort wrote: If you look around a bit you see also a lot of criticism. On the results of 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

Re: [fpc-pascal] FreeVision usable in a client/server database application?

2011-08-04 Thread Graeme Geldenhuys
On 3 August 2011 15:53, Reinier Olislagers wrote: I'm thinking about trying to separate out the database layer (using something like tiOPF perhaps) from the presentation layer. Good choice! :-) While I'm doing that, I thought about using character mode terminals (DOS or Linux shell) for

Re: [fpc-pascal] FreeVision usable in a client/server database application?

2011-08-04 Thread Graeme Geldenhuys
On 4 August 2011 11:14, Reinier Olislagers wrote: I think I didn't make myself clear. My intentions were to: 1. Create a business layer using FreePascal 2. Create a Lazarus desktop (maybe smartphone) app that uses the units in 1. My apologies; from your original message I didn't know step 2

Re: [fpc-pascal] FreeVision usable in a client/server database application?

2011-08-04 Thread Graeme Geldenhuys
On 4 August 2011 11:45, Reinier Olislagers wrote: which one is faster. (And also personal taste, I must admit - I'm still drawn to using a mouse when entering data on Windows apps, even though I know I can use the tab/cursor keys etc.) I fully understand that, most GUI desktop apps are not

Re: [fpc-pascal] Redirecting heap trace output to stdout

2011-08-17 Thread Graeme Geldenhuys
On 17 August 2011 19:13, Jonas Maebe wrote: assign(stderr,'somefile'); rewrite(stderr); I think you might be able to use the heaptrc environment variable for that as well. Not 100% sure if it will work in the case of a web app, but I can't see why not. See the heaptrc unit documentation for

Re: [fpc-pascal] Redirecting heap trace output to stdout

2011-08-17 Thread Graeme Geldenhuys
On 18 August 2011 00:17, Michael Van Canneyt wrote: When using CGI, you don't control the environment. The webserver does. If you are in control of the webserver (like when you are developing apps), can't you add new environment variables to Apache's configs files etc.. I vaguely remember

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

2011-08-23 Thread Graeme Geldenhuys
On 23/08/2011, Den Jean wrote: these options like crosszipinstall, crossinstall, ... are probably documented in a dozen places, albeit not visible enough for my blind eyes. +1 These settings seem very confusing, and definitely hard to find in any documentation. I just searched all my PDF docs

[fpc-pascal] FP IDE - jump to implementation

2011-08-26 Thread Graeme Geldenhuys
Hi, 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. Like Delphi or Lazarus's Ctrl+Shift+[up|down] -- Regards, - Graeme - ___ fpGUI - a

[fpc-pascal] FP IDE keyboard shortcuts don't work under Linux

2011-08-26 Thread Graeme Geldenhuys
Hi, I'm using Linux (ubuntu 8.04.4) with FP IDE (text mode ide). I went through the learn keys dialog and it detected all the keys I pressed. Yet when I'm in a source code unit and press some of the keyboard shortcuts (eg: Ctrl+F7 - add watch), it does nothing. Or when I run it inside the Gnome

Re: [fpc-pascal] FP IDE keyboard shortcuts don't work under Linux

2011-08-26 Thread Graeme Geldenhuys
On 27/08/2011, Florian Klämpfl wrote: Mostly incomplete/inconsistent terminal implementations. Best bet is xterm or text mode console. I tried both your suggestions. First switching to the linux console (not using X11). When I try and Alt+F3 to close one of the editor windows, Linux rather

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

2011-08-28 Thread Graeme Geldenhuys
On 27/08/2011, Marco van de Voort wrote: There is also codecomplete but afaik that is just macro expansion not very intelligent. I often find that [macro expansion] more useful than the supposed intelligent IDE's that often get things like indentation, begin..end placement etc wrong.

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

2011-09-08 Thread Graeme Geldenhuys
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. Regards, - Graeme - On 08/09/2011, brian

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

2011-09-08 Thread Graeme Geldenhuys
On 08/09/2011, Marco van de Voort wrote: 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 ExecuteProcess()

Re: [fpc-pascal] File monitoring Linux

2011-09-13 Thread Graeme Geldenhuys
On 13/09/2011 14:14, Martin Schreiber wrote: MSEgui has an implementation based on signals because inotify is not available on old kernels. lib/common/sysutils/msefilechange.pas. Word of caution... I still haven't tracked down why MSEide doesn't notify me or detect external file changes

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Graeme Geldenhuys
On 15/09/2011 17:12, Felipe Monteiro de Carvalho wrote: http://wiki.lazarus.freepascal.org/How_To_Use_Interfaces_to_write_less_code Should that example not mention that it will not work with any released FPC version to date? That example will only work with the still to be released 2.6.0 and

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Graeme Geldenhuys
On 15/09/2011 16:54, Marcos Douglas wrote: Well, wrong just because the language is so but not because is ilogical, right? Unless you are well versed with interfaces, I would not go there. Mixing object references and interface references (especially if reference counting is enabled) - you

Re: [fpc-pascal] Interface, _AddRef, _Release, etc.

2011-09-16 Thread Graeme Geldenhuys
You're original problem is exactly why I said mixing class instances and interface instance is looking for trouble. You better know what you are doing. Attached are two examples of your program. One using CORBA interfaces, the other using non-reference counting COM style interface. Both work

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

2011-09-18 Thread Graeme Geldenhuys
On 18/09/2011, Reinier Olislagers wrote: 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? Tip #1: Install a distro geared for programmers. ;-) Slackware includes everything a developer needs out

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

2011-09-18 Thread Graeme Geldenhuys
On 18/09/2011, Reinier Olislagers wrote: PS: aptitude install lazarus fpc fpc-source isn't too difficult to get FPC/Lazarus going in Debian either ;) I never install binary releases of the various distro packages - they are always out of date. Installing from source and wanting to compile, you

[fpc-pascal] A list of CORBA interfaces - how?

2011-09-20 Thread Graeme Geldenhuys
Hi, I'm porting some of my old Delphi code which used interfaces extensively. Since I moved to FPC years ago, I liked the idea of CORBA-style interfaces, and mostly use them under FPC projects. Anyway, some of my code used IInterfaceList / TInterfaceList, but that uses IIInterface, which is an

[fpc-pascal] problems with CORBA interfaces having no base type

2011-09-20 Thread Graeme Geldenhuys
Hi again, Continuing my port of old Delphi code that used interfaces extensively. Now that FPC 2.6.0 is nearing, I can play the with Interface improvements it has. In some of my old Delphi code, I created a generic class that takes a generic interface via IInterface. This class was made to be

Re: [fpc-pascal] problems with CORBA interfaces having no base type

2011-09-20 Thread Graeme Geldenhuys
On 20/09/2011 09:31, Sven Barth wrote: I personally would declare my own basic interface class and derive all other interfaces from that... This of cours only works if anyone adheres / can adhere to that rule. I thought of this, but then my code is not very reusable by other developers.

[fpc-pascal] Are there any limitations with TCustomSQLScript

2011-09-21 Thread Graeme Geldenhuys
Hi, I created a upgrade script runner application for our products. This allows the end user to easily upgrade there local database with a new executable and update scripts. Preliminary testing shows that some of the scripts do not execute (or execute correctly / fully). But if I run that same

Re: [fpc-pascal] freetype unit + unicode

2011-10-04 Thread Graeme Geldenhuys
On 03/10/2011 21:51, David Emerson wrote: I am using the freetype unit (with linux) and would like to display some interesting unicode characters. However when I pass a string containing say U+2265 to GetStringGray, it doesn't display the unicode character at all; it shows 3 other

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

2011-10-06 Thread Graeme Geldenhuys
On 06/10/2011, Reinier Olislagers wrote: Git: https://github.com/graemeg/freepascal/raw/7026b7669fd422f88ffe33174dac1725c0295427/packages/fcl-extra/src/win/ServiceManager.pas = Unix line endings via git pull etc = Unix line endings not surprising... Seems the SVN client is converting

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

2011-10-06 Thread Graeme Geldenhuys
On 06/10/2011, Reinier Olislagers wrote: Thanks Alex, I already fiddled with that. I'll try again with core.autocrlf set to true and false to make sure it doesn't work... As far as I know, Git will only do the conversion when you clone a new repository, or when you pull new changes. If you

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 Graeme Geldenhuys
On 06/10/2011 20:41, Reinier Olislagers wrote: rem check setting - yes, input: git config --global core.autocrlf input The Git installation under Windows set mine to true (not input). So while it could be used, I'd have to remember to run unix2dos over it - that is, if people expect a

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 Graeme Geldenhuys
On 07/10/2011 11:28, Marco van de Voort wrote: 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 should

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 Graeme Geldenhuys
On 07/10/2011 12:52, Reinier Olislagers wrote: doesn't work - will need patch -p1 git.diff Correct, and anybody that has applied a handful of patches or more in there time would have known that already. ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free

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 Graeme Geldenhuys
On 07/10/2011 15:53, Reinier Olislagers wrote: Sure, but why add to the aggravation - SVN diff doesn't do this, so one less difference to worry about: It's still in the universal patch format, with or without the path prefixes. Also nobody should commit a patch blindly. They should review the

Re: [fpc-pascal] More Filter Madness

2011-10-14 Thread Graeme Geldenhuys
On 14/10/2011 08:49, Vincent Snijders wrote: Depending on how many numbers you read and the difference between The original poster's questions sounds very much like a homework assignment, which you have no done for him. Naughty! Regards, - Graeme - -- fpGUI Toolkit - a

Re: [fpc-pascal] More Filter Madness

2011-10-14 Thread Graeme Geldenhuys
On 14/10/2011 09:09, Ko Hashiguchi wrote: Call me an old fart who just needed the help. Please accept my apology then. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___

Re: [fpc-pascal] CGI under Freepascal

2011-10-19 Thread Graeme Geldenhuys
On 18/10/2011 16:51, Michael Van Canneyt wrote: You can always search for powtils, but as far as I know it is unmaintained. I use powtils (aka pwu), and it works very well. We have 3 CGI apps developed with powtils, connecting to a database backend etc. It is easy to use and relatively easy

Re: [fpc-pascal] Getting Hardware information in Linux

2011-10-19 Thread Graeme Geldenhuys
On 18/10/2011 21:44, Michael Van Canneyt wrote: use DBUS to query HAL. Normally you should get most of the info. I wrote an article on how to do this in FPC. if you want, I can send it to you. Would you mind sending me that article too, please. I'm using Turbo Power's OnGuard in our

Re: [fpc-pascal] Getting Hardware information in Linux

2011-10-19 Thread Graeme Geldenhuys
On 19/10/2011 00:31, Den Jean wrote: read the output of lshw or read its source on how to do it yourself. problems with that is that to get most of the information you must run lshw as super-user (root). eg: Serial numbers, product codes, vendor names etc are all missing from the output if you

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

2011-10-19 Thread Graeme Geldenhuys
Hi, 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). TClientDataset also missed some vital features, and the state of WebServices was also not complete. Here

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

2011-10-19 Thread Graeme Geldenhuys
On 2011-10-19 11:23, Marco van de Voort wrote: - kbmMW http://components4developers.com/ the author was on the Lazarus day in 2010. Thanks, I'll take a look. I take 3-tier above as a general framework for 3-tier, not necessarily a Datasnap compatible layer. Correct, it doesn't need to

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

2011-10-19 Thread Graeme Geldenhuys
On 2011-10-19 11:36, michael.vancann...@wisa.be wrote: Out of the box: no. OK, thanks. Do you know if TClientDataset has improved at all? Midas is written in C++, so that's not going to happen. I didn't know that. OTOH the web-development part has resulted in a ready-to-use packet

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

2011-10-19 Thread Graeme Geldenhuys
On 2011-10-19 11:23, Marco van de Voort wrote: - kbmMW http://components4developers.com/ the author was on the Lazarus day in 2010. Strange, nowhere on the kbmMW website do I see any mention of Free Pascal Compiler or Lazarus IDE support.

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

2011-10-19 Thread Graeme Geldenhuys
On 2011-10-19 13:34, michael.vancann...@wisa.be wrote: factor 6 when switching from XML to binary messaging. Not using HTTP but a self-made TCP/IP protocol gets you another factor. Are both the binary message format and self-made TCP/IP protocol publicly available? Maybe that might be worth

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

2011-10-21 Thread Graeme Geldenhuys
On 2011-10-20 17:08, Andrew Pennebaker wrote: I'll just wait for v2.6 then. No need to wait, checkout the fixes_2_6 branch, which is currently at version 2.5.1, but will become the v2.6.0 release. This also means you will help test the future 2.6.0 release and catch any possible bugs _before_

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

2011-10-22 Thread Graeme Geldenhuys
On 22/10/2011, Felipe Monteiro de Carvalho wrote: Yet another chapter of my database problems =) As this message thread proves, there are many issues with Auto-inc field, so simply DON'T USE THEM! You have many alternatives, which will save you LOTS of grey hairs. Auto-Inc field are just

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

2011-10-22 Thread Graeme Geldenhuys
Hi, 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 that under Linux, if you use a port 1024 you must

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

2011-10-22 Thread Graeme Geldenhuys
On 22/10/2011, Marco van de Voort wrote: I haven't tried for years, but I can remember some strange problems 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

[fpc-pascal] FPC has multiple HTTP server components

2011-10-22 Thread Graeme Geldenhuys
Hi, I was looking through the FCL code and noticed that there seems to be more than one HTTP server component. What is the difference between them, and which one would be the better option as the basis for a HTTP based n-tier application server (for use with tiOPF). I found the recent one

Re: RE : RE : [fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?

2011-10-23 Thread Graeme Geldenhuys
On 23/10/2011, Felipe Monteiro de Carvalho wrote: I am writing a CGI WebServer, so I haven't yet managed to get Lazarus step-by-step debugging to work (not sure if it is possible with CGI), so that's what caused so much confusion for me You can't do that. You have to use an embedded web

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

2011-10-24 Thread Graeme Geldenhuys
On 2011-10-24 12:13, Vincent Snijders wrote: I consider this bad advice. GUID are bad primary keys, because of their size and the fact they are not sequential by design. We did some speed tests between GUIDs (Char(36) as used by tiOPF which strips some chars from a normal GUID) and Int,

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

2011-10-24 Thread Graeme Geldenhuys
On 2011-10-24 12:40, Marcos Douglas wrote: GUID isn't the key, but a way to know how get the register before insert it. In our case we use the actual GUID value as the actual primary key. The GUID is unique in our database and across multiple databases. This is very important to us, because we

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

2011-10-24 Thread Graeme Geldenhuys
On 2011-10-24 13:23, Burkhard Carstens wrote: For TIdTCPServer I manually add the IPv4 binding like this: IdTCPServer1.Bindings.add.IPVersion:=Id_IPv4; IdTCPServer1.Active:=true; Without that, Activate fails on linux systems that have ipv6 enabled. Thanks Bulkhard! Finally I am making

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

2011-10-24 Thread Graeme Geldenhuys
On 2011-10-24 14:25, michael.vancann...@wisa.be wrote: And, very important but often underestimated: At least our clients can read an integer primary/foreign key aloud over the phone when the need arises. I can't hear them doing that with a GUID :-) Enable client-side logging (our apps have

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

2011-10-24 Thread Graeme Geldenhuys
On 2011-10-24 14:43, michael.vancann...@wisa.be wrote: We will of course support GUID PKs, although in my opinion, there is precious little to support as it will in general be client code that generates the GUID (unless I am much mistaken in what is common practise) ? That is indeed the

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

2011-10-24 Thread Graeme Geldenhuys
On 2011-10-24 15:15, Ludo Brands wrote: Most databases have functions to create GUID's (with different randomness quality and different storage requirements): No, no, no... you are missing the point of this thread, and what I meant by using a GUID. The idea is that you can created the GUID

Re: [fpc-pascal] text.inc(1955, 20) Error: identifier idents no member CodePage

2011-10-26 Thread Graeme Geldenhuys
On 26 October 2011 14:19, Henry Vermaak wrote: Lol.  Maybe it's time you create a bot that catches these emails and respond to them automatically :) Maybe the makefile can be amended to check the version number of the FPC being used. If you are trying to compile Trunk, and the FPC version you

Re: [fpc-pascal] text.inc(1955, 20) Error: identifier idents no member CodePage

2011-10-26 Thread Graeme Geldenhuys
On 26 October 2011 14:38, Jonas Maebe wrote: This would require at least an exception for cross-architecture compiling, Ah yes, I forgot about cross compiling. Probably at least a Makefile flag should be added that can be used to override the check if you think you know what you are doing.

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

2011-10-31 Thread Graeme Geldenhuys
On 31 October 2011 12:45, Jonas Maebe wrote: sqlite3 is not part of FPC. You probably have to install the sqlite3-dev package or something like that. Arguably, that should be a dependency of the fpc .deb package that installs support for interfacing with sqlite3. I agree with Michael

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-06 Thread Graeme Geldenhuys
On 6 November 2011 22:28, Frank Church wrote: If that is the case then a lot of Free Pascal and Delphi demos are teaching bad practices because they make most members accessible externally when there is no real reason to. I never thought about that much because I just wanted to get my apps

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

2011-11-07 Thread Graeme Geldenhuys
On 7 November 2011 20:41, Marco van de Voort wrote: That current is added by you. FPC strives to do that of course, but never had the illusion it was near enough to claim something like that. Not now, and not in the past. So what exactly is the goals of FPC then? And please don't tell me

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

2011-11-08 Thread Graeme Geldenhuys
On 8 November 2011 09:23, Florian Klaempfl wrote: Let me answer: Writing an (L)GPL'ed pascal (*) compiler being self hosting. From the man himself. OK good, so now we all know the goal is not one of delphi compatible (that is rather limited only as a side effect - nice to have), so please

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

2011-11-08 Thread Graeme Geldenhuys
2011/11/8 Tomas Hajny : Examples? I can list them all, but I'm not going to waist my time on them again. Search the mailing list or Mantis. But to humour you, here is just one of many examples: THelpEvent in the RTL. I proposed a patch to change it to be more in line with FPC's goals [being a

[fpc-pascal] Generics vs TCollection

2011-11-08 Thread Graeme Geldenhuys
Hi, I was reviewing some old code that used TCollection TCollectionItem descendants. This made me think... With the introduction of Generics, is there really still a need for TCollection/TCollectionItem? -- Regards,   - Graeme - ___ fpGUI - a

Re: [fpc-pascal] Generics vs TCollection

2011-11-08 Thread Graeme Geldenhuys
On 8 November 2011 11:58, Jonas Maebe wrote: At the very least, backward compatibility with existing code. We even still ship a Turbo Pascal-compatible objects unit. Please see my reply to Michael. I had no intentions in recommending the removal of TCollection. I'm just comparing

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

2011-11-08 Thread Graeme Geldenhuys
On 8 November 2011 12:29, Carlo Kok ck@. wrote: I know it's a bit late, only just noticed this thread, but we support FPC with DA and RO too. www.remobjects.com/da Thanks for pointing out another alternative. I'll go ahead and read about DA now. For my immediate needs, I am abstracting

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

2011-11-08 Thread Graeme Geldenhuys
On 8 November 2011 12:43, Florian Klaempfl florian@f... wrote: So you wanted to break existing stuff other people probably used? It is indeed one of FPC's policy to avoid breakage of exisiting code. Break what existing code? I searched all of FPC, Lazarus, Lazarus CCR and MSEgui - there was no

Re: [fpc-pascal] ioda joda fulltext search not working

2011-11-09 Thread Graeme Geldenhuys
On 9 November 2011 10:40, michael.vancanneyt@. wrote: It definitely works, I also use it in a commercial project to implement full-text-search on a firebird database. Now that would be pretty awesome! :) -- Regards,   - Graeme - ___ fpGUI -

Re: [fpc-pascal] ioda joda fulltext search not working

2011-11-09 Thread Graeme Geldenhuys
On 9 November 2011 11:34, michael.vancanneyt@ wrote: It is. When I showed it to the customers, they were very impressed :-) (considering their question was 'we want to do like google search but on the database') I've been wanting to improve the WebNews interface to the tiOPF and fpGUI

Re: [fpc-pascal] Generics vs TCollection

2011-11-10 Thread Graeme Geldenhuys
On 9 November 2011 22:08, Michael Van Canneyt michael@ wrote: Hm. I fail to see this: Where is the gain in that ? +1 -- Regards,   - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Re: [fpc-pascal] Compilation time

2011-11-14 Thread Graeme Geldenhuys
On 12/11/2011, Florian Klämpfl florian@ wrote: Am 12.11.2011 21:51, schrieb Rainer Stratmann: Does more cpu cores mean less compile time? No. Doing a 'make' for the FPC project, multiple cores can be used (via eg: -j 5 command line parameter on a quad core system). But I think the

Re: [fpc-pascal] Re: pchar with more than 255 characters

2011-11-14 Thread Graeme Geldenhuys
On 13/11/2011, leledumbo leledumbo_cool@ wrote: I think the compiler treats functions receiving array of char (or pointer to it) as ShortString when none of the directives above exist. Indeed, FPC defaults to ShortString if {$H+} is not specified. That is probably the problem. I really

Re: [fpc-pascal] parent class as a parameter type

2011-11-14 Thread Graeme Geldenhuys
On 12/11/2011, ik idokan@ wrote: Since 2.6.0, when you write something like this: I think it was even before this. procedure foo(AClass : TStrings); foo(MyStringList); // Will return an error that TStrings is expected ... I can not use TStringList as the parameter without casting it to

Re: [fpc-pascal] parent class as a parameter type

2011-11-15 Thread Graeme Geldenhuys
On 15/11/2011, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: On Tue, Nov 15, 2011 at 10:10 AM, Bart bartjun...@gmail.com wrote: That would be strange indeed, because then most events (onclick handlers etc) would not compile anymore, since they are in the format

[fpc-pascal] various ways of passing a class instance as a parameter

2011-11-15 Thread Graeme Geldenhuys
Hi, What exactly is the difference (if any) between the parameter modifier when you pass a class instance to a procedure? In the example below, I can define foo() as follows... procedure foo(AClass: TStringList); or procedure foo(var AClass: TStringList); or procedure foo(const AClass:

Re: [fpc-pascal] Re: pchar with more than 255 characters

2011-11-15 Thread Graeme Geldenhuys
On 15/11/2011, Sven Barth pascaldra...@googlemail.com wrote: In this case the reason is simply backwards compatibilty (note: not Delphi compatibilty :P ). But that's my point. I really don't think anybody is writing TP style programs any more. So wouldn't it make sense to change the default

Re: [fpc-pascal] various ways of passing a class instance as a parameter

2011-11-15 Thread Graeme Geldenhuys
On 15/11/2011, Martin Schreiber mse0@g. wrote: Thanks Martin. Extending my example by changing the body of foo() too... AClass.Free; AClass := TStringList.Create; AClass.Add('inside foo'); ...reveals a bit more about the differences. procedure foo(const AClass: TStringList);

Re: [fpc-pascal] Makeskel how to add Firebird connection documentation?

2011-11-17 Thread Graeme Geldenhuys
On 17 November 2011 11:06, michael.vancanneyt@... wrote: Apart from that, is this the right command to start? You can drop the '--update', if it is the first time. and the output option should be  --output=ibconnection.xml, not  --output=ibconnection.pp I would even go as far as to

Re: [fpc-pascal] Makeskel how to add Firebird connection documentation?

2011-11-17 Thread Graeme Geldenhuys
On 17 November 2011 11:45, michael.vancanneyt@ wrote: I'm not sure why you recommend leaving makeskel ? I use it always for the initial file ? Given the proper parameters, it creates a very usable initial file ? Maybe fpdoc has improved in those areas since I found the issues with

Re: [fpc-pascal] Makeskel how to add Firebird connection documentation?

2011-11-17 Thread Graeme Geldenhuys
On 17 November 2011 12:23, Reinier Olislagers reinierolislagers@g. wrote: Thanks, I know, but does that include the internal (private) ones? That would seem a bit restrictive... No, as far as I know that restriction only applies to Public and Published visibility. -- Regards,   - Graeme -

Re: [fpc-pascal] Makeskel how to add Firebird connection documentation?

2011-11-17 Thread Graeme Geldenhuys
On 17 November 2011 14:46, michael.vancanneyt@... wrote: It only generates empty tags. If you say 'update' then it generates a new file with empty tags for elements for which no tag was found. I'm not referring to the update action of makeskel, I meant the first time you run makeskel, it

Re: [fpc-pascal] Makeskel generation question

2011-11-18 Thread Graeme Geldenhuys
On 2011-11-18 12:05, Reinier Olislagers wrote: Shouldn't the TIBConnection.GetHandle.Result function result visibility be protected as well? I have no idea what default visibility actually means. I can add that parameters and function results don't generate any visibility headers in the

Re: [fpc-pascal] Makeskel generation question

2011-11-18 Thread Graeme Geldenhuys
On 2011-11-18 13:15, Reinier Olislagers wrote: So apparently no help for the poor developer who wants to inherit a class and wants to figure out how to use the protected methods properties ;) The is also no help (near zero) for poor Michael, having to write all that documentation. Just

Re: [fpc-pascal] IBConnection blobsegmentsize irrelevant performance

2011-11-20 Thread Graeme Geldenhuys
On 20/11/2011, Michael Van Canneyt michael@... wrote: Well, if Ann Harrison herself says it's irrelevant, then yes. I suspect it would indeed give a serious performance boost :) Showing my ignorance by not knowing who Ann Harrison was, I Google'd her. I found this post on the Firebird website.

Re: Graeme: FBLIB blob segment size was: [fpc-pascal] Patch/Test BlobSegmentSize

2011-11-20 Thread Graeme Geldenhuys
On 20/11/2011, Reinier Olislagers reinierolislagers@ wrote: Had a look at tiOPF FBLib FBLDsql.pas. It defines BLOB_SEGMENT_LEN = 4095; used in both reading writing blob data. ... might/could/should that be enlarged to 65535? Based on the new information, it should be changed. I'll

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

2011-11-21 Thread Graeme Geldenhuys
On 2011-11-21 08:59, Frank Church wrote: adapterVals: TStringList adapterVals.Delimiter := ';'; adapterVals.DelimitedText := '192.168.1.2,00:0E:08:E0:7C:ED,Word Space'; I take it this is a typo, and you ment to have the comma's as semi-colons. adapterVals[2] = 'Word' - this should be

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

2011-11-21 Thread Graeme Geldenhuys
On 2011-11-21 10:28, michael.vancann...@wisa.be wrote: A space is always treated special. Where in the Delphi documentation does it mention that? I couldn't find any such reference in the Delphi 7 docs, and I thought FPC implements behaviour based on documented behaviour, not implementation

Re: Graeme: FBLIB blob segment size was: [fpc-pascal] Patch/Test BlobSegmentSize

2011-11-21 Thread Graeme Geldenhuys
On 2011-11-20 11:55, Reinier Olislagers wrote: ... might/could/should that be enlarged to 65535? The change has been made in the latest FBLib code. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

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

2011-11-21 Thread Graeme Geldenhuys
On 2011-11-21 11:17, michael.vancanneyt@w. wrote: Where in the Delphi documentation does it mention that? I couldn't find any such reference in the Delphi 7 docs, and I thought FPC implements behaviour based on documented behaviour, not implementation behaviour? Sure. See the

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

2011-11-21 Thread Graeme Geldenhuys
On 2011-11-21 12:06, michael.vancann...@wisa.be wrote: But we're not here to discuss the merits/disadvantages of the Delphi docs :-) Indeed. I double checked the FPC documentation, and it is perfectly clear and simple to understand. Makes me wonder why I even bothered to read the Delphi docs.

Re: [fpc-pascal] Name of a var

2011-11-22 Thread Graeme Geldenhuys
On 2011-11-22 11:13, michael.vancann...@wisa.be wrote: Typing VarName:=nameofvar( counter ); is more work than VarName:='counter'; So what's the point ? Maybe there is a use for it in the dbugintf unit? eg: SendInteger(counter) result on the debug server would then possibly be

Re: [fpc-pascal] Name of a var

2011-11-22 Thread Graeme Geldenhuys
On 2011-11-22 13:02, michael.vancann...@wisa.be wrote: No, if I was to program it using varname, I would get the name of the parameter in the function SendInteger. That's what I thought - and mentioned that fact. You need the address of the variable that was passed to SendInteger.

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

2011-11-24 Thread Graeme Geldenhuys
Hi, I just tried to compile a test.pp file inside my /tmp directory. FPC complained because there existed a /tmp/test/ directory!! Is this a normal or known limitation of FPC? Or does the blame fall onto the ld linker? 8-8-8-8-8 [tmp]$ fpc

Re: [fpc-pascal] Class reference doubt

2011-11-24 Thread Graeme Geldenhuys
On 2011-11-24 03:58, Luiz Americo Pereira Camara wrote: possible to get the expected behavior without forcing programmer to create a virtual constructor by using the new RTTI What has the new RTTI got to do with anything? Simply define TObj.Create as virtual, and TFoo.Create as overridden.

  1   2   3   4   5   6   7   8   9   10   >