Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Damien Gerard
://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal All paths are given : bin=/usr/local/bin share=/usr/local/share lib=/usr/local/lib receipts=/Library/Receipts -- Damien Gerard [EMAIL PROTECTED] Si ces robots s'humanisaient, inversement les êtres humains se robotiser

Re: [fpc-pascal] Best method to uninstall fpc and lazarus

2008-09-02 Thread Damien Gerard
Le Sep 2, 2008 à 12:12 PM, Paul a écrit : The uninstall steps on the wiki at http://wiki.freepascal.org/OS_X_Programming_Tips#Uninstalling_Lazarus_and_Free_Pascal rm -fv $bin/ppcppc shows "permission denied" Didn't test all subsequent items sudo rm -f /usr/local/bin/ppcp

Re: [fpc-pascal] Installing on Mac OS X

2008-09-01 Thread Damien Gerard
bject: Re: [fpc-pascal] Installing on Mac OS X On 31 Aug 2008, at 18:52, Paul wrote: Now I get "Free Pascal compiler not found" when Lazarus starts although it exists. Check the "Compiler path" in Environment->Environment Options. It should read something like /

Re: [fpc-pascal] FPC 2.3.1 on Mac OS X?

2008-08-30 Thread Damien Gerard
e (it is the latest stable version). The last time I checked there were still issues with generics however it is not something absolutely needed -- Damien Gerard [EMAIL PROTECTED] Si ces robots s'humanisaient, inversement les êtres humains se robotise

Re: [fpc-pascal] Mac OS X api cals

2008-08-29 Thread Damien Gerard
Le Aug 29, 2008 à 10:55 PM, Damien Gerard a écrit : Le Aug 28, 2008 à 10:55 PM, Paul a écrit : However, as a bank, they only trust on themselves. And they like to reinvent a broken wheel :) exactly :-) they also like many custom features .. Just in case you really really want to

Re: [fpc-pascal] Mac OS X api cals

2008-08-29 Thread Damien Gerard
: http://developer.apple.com/documentation/GraphicsImaging/Conceptual/QuartzDisplayServicesConceptual/Articles/MouseCursor.html#/ /apple_ref/doc/uid/TP40004269 -- Damien Gerard [EMAIL PROTECTED] Si ces robots s'humanisaient, inversement les êtres humains se robotiseraien

Re: [fpc-pascal] Re: Socket library for Mac OS X

2008-08-28 Thread Damien Gerard
man/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- Damien Gerard [EMAIL PROTECTED] Si ces robots s'humanisaient, inversement les êtres humains se robot

Re: [fpc-pascal] Mac OS X api cals

2008-08-28 Thread Damien Gerard
be another matter (but I haven't seen that being mentioned). However, as a bank, they only trust on themselves. And they like to reinvent a broken wheel :) -- Damien Gerard [EMAIL PROTECTED] Si ces robots s'humanisaient, inversement les êt

Re: [fpc-pascal] Mac OS X api cals

2008-08-28 Thread Damien Gerard
h secutity level (banks) and we even need to write special servers for them. Believe me: they won't take VNC for an answer. I don't see the problem if you use a good and strong VPN. If was the case in my last job and we worked for a bank. Paul -- Damien Gerard [EMAIL PROTE

Re: [fpc-pascal] Mac OS X api cals

2008-08-28 Thread Damien Gerard
open a https tunnel to the server and simply tunnel VNC over this connection. Of course, no one can stop you from reimplementing everything, but it's probably going to be quite a bit of work (as such low level things are quite platform specific). Indeed -- Damien Gerard [EMAIL PRO

Re: [fpc-pascal] Mac OS X api cals

2008-08-27 Thread Damien Gerard
but no one seems to be able to answer it. When I mentioned FreePascal, I've got no reply's at all anymore. Talking about closed communities Does anyone knows where to get this information ? TIA, Paul -- Damien Gerard [EMAIL PROTECTED] Si ces robots s'humanisaien

Re: [fpc-pascal] Socket library for Mac OS X

2008-08-27 Thread Damien Gerard
Le Aug 27, 2008 à 1:06 PM, Paul a écrit : Are there any socket library's available for Mac OSX with FPC? I need Https communication TIA lNet works very well on OS X, and I prefer it instead of Synapse (http://lnet.wordpress.com/blog/ ) -- Damien Gerard [EMAIL PROTECTED] S

Re: [fpc-pascal] Translate C to Pascal

2008-07-30 Thread Damien Gerard
compute() {...} }; would be class Foo private FTag: Integer; public constructor Create; procedure compute; property tag: Integer read FTag write FTag; end; the property is not really needed of course. -- Damien Gerard [EMAIL PROTECTED] Si ces robots s'humanisaient, inversemen

Re: [fpc-pascal] Re: FPC 2.2.1 on Mac OS X

2008-06-05 Thread Damien Gerard
mostly to install FPC. But I think it could be install in the same directory of Lazarus like it is done under Windows. By the way, I don't know if it is a good idea, but the install dir may be /Developper/Applications/Lazarus instead of /Applications, like XCode and others dev tools.

Re: [fpc-pascal] Re: FPC 2.2.1 on Mac OS X

2008-06-05 Thread Damien Gerard
Le Jun 5, 2008 à 2:09 PM, Jonas Maebe a écrit : On 05 Jun 2008, at 09:50, Damien Gerard wrote: Le Jun 5, 2008 à 8:11 AM, Karl-Michael Schindler a écrit : Hallo Am 4. Jun 2008 um 09:56 schrieb Damien Gerard: Please not Fink. Put only Lazarus.app as it already exists (Carbon widgetset

Re: [fpc-pascal] Re: FPC 2.2.1 on Mac OS X

2008-06-05 Thread Damien Gerard
Le Jun 5, 2008 à 8:11 AM, Karl-Michael Schindler a écrit : Hallo Am 4. Jun 2008 um 09:56 schrieb Damien Gerard: Le Jun 4, 2008 à 8:51 AM, Karl-Michael Schindler a écrit : I only noticed now the discussion on the mailing list about fpc 2.2.1 and lazarus on Mac OS X. As the maintainer of

Re: [fpc-pascal] Re: FPC 2.2.1 on Mac OS X

2008-06-04 Thread Damien Gerard
0.9.26 is ready or is it absolutely necessary to include the fixes since 0.9.24? Best wishes - Michael. -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist -

Re: [fpc-pascal] Hash table with different kind of key

2008-06-02 Thread Damien Gerard
Le Jun 2, 2008 à 11:48 AM, Damien Gerard a écrit : Le Jun 2, 2008 à 11:29 AM, Florian Klaempfl a écrit : Damien Gerard schrieb: Hi ! Is there somewhere hash tables with different kind of keys and if possible different kind of values ? Like in C++ actually with a std::map. May be it

Re: [fpc-pascal] Hash table with different kind of key

2008-06-02 Thread Damien Gerard
Le Jun 2, 2008 à 11:29 AM, Florian Klaempfl a écrit : Damien Gerard schrieb: Hi ! Is there somewhere hash tables with different kind of keys and if possible different kind of values ? Like in C++ actually with a std::map. May be it would be possible with fpc 2.2.2 and generics

[fpc-pascal] Hash table with different kind of key

2008-06-02 Thread Damien Gerard
Hi ! Is there somewhere hash tables with different kind of keys and if possible different kind of values ? Like in C++ actually with a std::map. May be it would be possible with fpc 2.2.2 and generics ? -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules."

Re: [fpc-pascal] FPC scripting suport

2008-05-28 Thread Damien Gerard
Le May 28, 2008 à 12:30 PM, Henry Vermaak a écrit : 2008/5/28 Damien Gerard <[EMAIL PROTECTED]>: Le May 28, 2008 à 12:08 PM, Michael Van Canneyt a écrit : Remobjects PascalScript works with FPC. (it used to be innerfuse pascal) Just for my information does it work under Linu

Re: [fpc-pascal] FPC scripting suport

2008-05-28 Thread Damien Gerard
this is a simplified example, on my situation there are many functions and I want one function to have configurable formula content. Remobjects PascalScript works with FPC. (it used to be innerfuse pascal) Just for my information does it work under Linux *and* OS X ? -- Damien Gerard [

Re: [fpc-pascal] FPC scripting suport

2008-05-28 Thread Damien Gerard
turns the VAT value). Of course this is a simplified example, on my situation there are many functions and I want one function to have configurable formula content. Thank you very much. Best regards, Mihai -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -

Re: [fpc-pascal] FPC 2.2.1 on Mac OS X

2008-05-23 Thread Damien Gerard
so it's irrelevant. Agreed. It needs improvements for sure, but it works well and it is far better than GTK1/2 -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-

Re: [fpc-pascal] FPC 2.2.0 / SegF in threads

2008-05-16 Thread Damien Gerard
Le May 15, 2008 à 11:55 PM, mm a écrit : Damien Gerard a écrit : Le May 15, 2008 à 8:46 PM, Luca Olivetti a écrit : I don't know about gdb, but I know that you have to be extremely careful with exceptions in a thread, since any uncaught exception will silently terminate it.

Re: [fpc-pascal] FPC 2.2.0 / SegF in threads

2008-05-15 Thread Damien Gerard
Le May 15, 2008 à 8:46 PM, Luca Olivetti a écrit : El Thu, 15 May 2008 10:45:43 +0200 Damien Gerard <[EMAIL PROTECTED]> escribió: I have a program in lazarus with a thread . When there is a SegF in this thread it exits without notifying GDB. So the error is silent even with GDB (W

[fpc-pascal] FPC 2.2.0 / SegF in threads

2008-05-15 Thread Damien Gerard
, since the error is caught by the try..except statement ? -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.o

Re: [fpc-pascal] Rtf to HTML

2008-05-12 Thread Damien Gerard
for Debian : apt-get install rtf2html (must be checked) Under Windows I don't know if it exists without cygwin. -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist

Re: [fpc-pascal] Pointer address into string

2008-05-05 Thread Damien Gerard
Le May 5, 2008 à 5:10 PM, ik a écrit : Look at the Format function, you can tell it to display the address of a pointer in a string. Thanks ! -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Dou

[fpc-pascal] Pointer address into string

2008-05-05 Thread Damien Gerard
e way to do this ? -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Pointer address into string

2008-05-05 Thread Damien Gerard
ay to do this ? -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] pascal on macbook

2008-04-26 Thread Damien Gerard
again and anything else you wish to add I do appreciate it. George ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 1

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-09 Thread Damien Gerard
Le Apr 9, 2008 à 10:47 AM, Graeme Geldenhuys a écrit : On 09/04/2008, Damien Gerard <[EMAIL PROTECTED]> wrote: Does their documentation not suitable to you ? From MSSQL To Firefird http://www.firebirdsql.org/manual/migration-mssql.html I did find that, but it doesn't cover secu

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-09 Thread Damien Gerard
html Books http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_publications -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:/

Re: [fpc-pascal] Generics

2008-03-31 Thread Damien Gerard
Le Mar 31, 2008 à 10:06 PM, Damien Gerard a écrit : Le Mar 31, 2008 à 6:36 PM, Micha Nelissen a écrit : Damien Gerard wrote: I tried to use an Interface but I had a nice Segementation fault :) Should I report it as a bug in the mantis ? Actually there is the same error with an

Re: [fpc-pascal] Generics

2008-03-31 Thread Damien Gerard
Le Mar 31, 2008 à 6:36 PM, Micha Nelissen a écrit : Damien Gerard wrote: I tried to use an Interface but I had a nice Segementation fault :) Should I report it as a bug in the mantis ? Actually there is the same error with an intermediate class :( Segmentation faults in the compiler

Re: [fpc-pascal] Generics

2008-03-31 Thread Damien Gerard
Oki I understand. I tried to use an Interface but I had a nice Segementation fault :) Should I report it as a bug in the mantis ? Actually there is the same error with an intermediate class :( -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Dou

Re: [fpc-pascal] Generics

2008-03-31 Thread Damien Gerard
a generic class. Oki I understand. I tried to use an Interface but I had a nice Segementation fault :) Should I report it as a bug in the mantis ? foo.pas Description: Binary data -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat __

Re: [fpc-pascal] Generics

2008-03-31 Thread Damien Gerard
parameter must be a descendant of another class ? Ido On Mon, Mar 31, 2008 at 4:27 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: Le Mar 31, 2008 à 3:00 PM, Damien Gerard a écrit : I would like to make a generic class, like this : {$mode objfpc} generic TMCollection<_T> = c

Re: [fpc-pascal] Generics

2008-03-31 Thread Damien Gerard
Le Mar 31, 2008 à 3:00 PM, Damien Gerard a écrit : I would like to make a generic class, like this : {$mode objfpc} generic TMCollection<_T> = class(TObject) private FDefaultItem: _T; // line 35 public constructor Create; destructor Destroy;override; [...] end; But I ha

Re: [fpc-pascal] Generics

2008-03-31 Thread Damien Gerard
TMyMcollection. It seems like hard work, but it is much better then the way it look on a bad C++ and Java code :) :) Ido On Mon, Mar 31, 2008 at 4:00 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: I would like to make a generic class, like this : {$mode objfpc} generic TMCollection<_T

[fpc-pascal] Generics

2008-03-31 Thread Damien Gerard
iling ./commons.pas commons.pas(33,3) Error: VAR and TYPE are allowed only in generics commons.pas(35,21) Error: Identifier not found "_T" Could someone tell me where I am wrong ? Thanks ! -- Damien Gerard [EMAIL PROTECTED] "Int

Re: [fpc-pascal] connection problem

2008-03-27 Thread Damien Gerard
s, and the bug tracker notices in mail and CIA at IRC I suppose it's working, any idea? Jesus Reyes A. -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pa

[fpc-pascal] Functions with out parameters

2008-03-10 Thread Damien Gerard
ver crash and all my variables are correct. So I guess the two parameters share the same pointer. It seems logic to me in this case. However, is there a way the compiler produces an error in this case ? I suppose there is a similar case with the 'var' keyword. -- Damien Gerar

Re: [fpc-pascal] Empty string

2008-03-07 Thread Damien Gerard
Le Mar 7, 2008 à 3:35 PM, John Coppens a écrit : On Fri, 7 Mar 2008 15:09:36 +0100 Damien Gerard <[EMAIL PROTECTED]> wrote: Consequently, it can not be the same code. Otherwise I understood nothing :) '' is an empty string, _and_ its length is zero (of course). So th

Re: [fpc-pascal] Empty string

2008-03-07 Thread Damien Gerard
Le Mar 7, 2008 à 2:54 PM, Jonas Maebe a écrit : On 03 Mar 2008, at 17:16, Damien Gerard wrote: In any programs, a lot of tests on empty strings are made. The following made the work : if Length(s) <> 0 then ... or if s <> '' then ... In a lot of cases, the real length

Re: [fpc-pascal] Empty string

2008-03-07 Thread Damien Gerard
Le Mar 3, 2008 à 5:22 PM, ik a écrit : Doesn't FillChar/Word/Byte works for you ? I don't think any of them made my purpose. Ido On Mon, Mar 3, 2008 at 6:16 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: In any programs, a lot of tests on empty strings are made. The fo

Re: [fpc-pascal] Empty string

2008-03-06 Thread Damien Gerard
to length(s) do ... so I am not sure that using s[0] is safe -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepasca

Re: [fpc-pascal] AnsiDequotedStr not return empty for ""

2008-03-04 Thread Damien Gerard
the rules are similar to Pascal itself, with '''' being a single quote, and '' an empty string ? Micha -- Damien Gerard [EMAIL PROTECTED] "Intelligence is 10 million rules." -- Douglas Lenat ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Empty string

2008-03-03 Thread Damien Gerard
ings with leading zero. Just with the first char we can know if the string is empty or not. Is there a function of this kind that I don't know already exist ? Would it be possible to implement such a function (may be a stupid idea for an unknown reason) ? Can this function be directly done in

Re: [fpc-pascal] Vim FileType for pascal files

2008-02-24 Thread Damien Gerard
Le Feb 24, 2008 à 9:59 PM, Lucas Vasconcelos a écrit : hi, try // vim: set ts=4 filetype=pascal : ;~] It does not work either :( On Sun, Feb 24, 2008 at 9:29 AM, Damien Gerard <[EMAIL PROTECTED]> wrote: hi ! I use includes files and a vim editor. Obviously .inc are not reco

[fpc-pascal] Vim FileType for pascal files

2008-02-24 Thread Damien Gerard
hi ! I use includes files and a vim editor. Obviously .inc are not recognized as pascal files. I tried the following : // vim:ts=4:filetype=pascal but it does not work. Any ideas ? -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important

Re: [fpc-pascal] XML Programming..

2008-02-13 Thread Damien Gerard
this : http://wiki.freepascal.org/Web_Service_Toolkit -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important -- (f00ty) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] XML Programming..

2008-02-12 Thread Damien Gerard
Le Feb 11, 2008 à 2:15 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > a écrit : Hi.. I’m looking for an example how to use or programming XML in fpc.. n the documentation I hope.. http://www.thomas-zastrow.de/texte/fpcxml/index.php -- Damien Gerard [EMAIL PROTECTED] Le t

Re: [fpc-pascal] Semaphore

2008-02-12 Thread Damien Gerard
Le Feb 12, 2008 à 3:47 PM, Jonas Maebe a écrit : On 12 Feb 2008, at 15:43, Damien Gerard wrote: Ok thanks ! I ve got all I need to use Semaphore, except one thing : How I set the limit ? I mean I want to restrict to 4 concurrent accesses to a shared ressource. With pthread I have int

Re: [fpc-pascal] Semaphore

2008-02-12 Thread Damien Gerard
Le Feb 12, 2008 à 3:08 PM, Jonas Maebe a écrit : On 12 Feb 2008, at 14:55, Damien Gerard wrote: I though that too but currenttm can not be found under Windows. What is the good unit for it ? Indeed, you shouldn't use currenttm. Use this routine instead (from the system unit, the r

Re: [fpc-pascal] Semaphore

2008-02-12 Thread Damien Gerard
Le Feb 12, 2008 à 2:41 PM, Jonas Maebe a écrit : On 11 Feb 2008, at 10:45, Damien Gerard wrote: I think it has been discussed before but I would like to use Semaphores, to allow multiple reads but 1 write at once (which is in fact commons operations in a multi-thread program). My

Re: [fpc-pascal] Semaphore

2008-02-12 Thread Damien Gerard
Le Feb 12, 2008 à 2:44 PM, Jonas Maebe a écrit : On 12 Feb 2008, at 14:20, Damien Gerard wrote: Le Feb 12, 2008 à 12:36 PM, Graeme Geldenhuys a écrit : procedure TtiPool.CreatePoolSemaphore; begin {$IFDEF MSWINDOWS} if FSemaphore <> 0 then CloseHandle(FSemaphore); FSem

Re: [fpc-pascal] Semaphore

2008-02-12 Thread Damien Gerard
Le Feb 12, 2008 à 12:36 PM, Graeme Geldenhuys a écrit : On 11/02/2008, Damien Gerard <[EMAIL PROTECTED]> wrote: My program must work under OSX/Nux and Windows. I may have missed something but I can not find something suitable for me. Under Windows OpenSemaphore, under

Re: [fpc-pascal] Semaphore

2008-02-12 Thread Damien Gerard
Le Feb 12, 2008 à 12:36 PM, Graeme Geldenhuys a écrit : On 11/02/2008, Damien Gerard <[EMAIL PROTECTED]> wrote: My program must work under OSX/Nux and Windows. I may have missed something but I can not find something suitable for me. Under Windows OpenSemaphore, under

[fpc-pascal] Semaphore

2008-02-11 Thread Damien Gerard
something suitable for me. Under Windows OpenSemaphore, under unixes CurrentTM.Semaphore*... Is there any TSemaphore class of equivalent ? Or may be an example how to use Semaphores ? :) -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important

Re: [fpc-pascal] Internal Error 200212277

2008-01-23 Thread Damien Gerard
ild all", so when my apps are not entirely rebuild. What is it exactly ? Have I something to do from my side ? Some problem with loading of the units. Create a reproducable sample and submit a bug report. Without a reproducable sample we can't help you. I understand. Hum it won&#

[fpc-pascal] Internal Error 200212277

2008-01-23 Thread Damien Gerard
rebuild. What is it exactly ? Have I something to do from my side ? -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important -- (f00ty) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Heterogenous list of objects

2008-01-22 Thread Damien Gerard
possible to build a class that will have TObjecList member so that I will be able to use TList of this class? For instance: No. Per node you can add its own ObjectList and use virtual methods to make the job for you. -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'

Re: [fpc-pascal] Heterogenous list of objects

2008-01-22 Thread Damien Gerard
ascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important -- (f00ty) ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] property or public

2008-01-21 Thread Damien Gerard
On Jan 21, 2008, at 4:47 PM, Joao Morais wrote: Matt Emson wrote: Joao Morais wrote: Damien Gerard wrote: On Jan 21, 2008, at 2:52 PM, Joao Morais wrote: Damien Gerard wrote: I have (it would seem) a stupid question :) We have TStringList vars. User can do what he want with it. Which

Re: [fpc-pascal] property or public

2008-01-21 Thread Damien Gerard
On Jan 21, 2008, at 2:52 PM, Joao Morais wrote: Damien Gerard wrote: I have (it would seem) a stupid question :) We have TStringList vars. User can do what he want with it. Which one is the stupid or the better way to do it ? TMyClass = class(TObject) public List1: TStringList; List2

[fpc-pascal] property or public

2008-01-21 Thread Damien Gerard
: TStringList; FList2: TStringList; public property List1: TStringList read FList1; property List2: TStringList read FList2; end; -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important -- (f00ty) _

Re: [fpc-pascal] FreePascal Coding style

2008-01-21 Thread Damien Gerard
On Jan 21, 2008, at 9:31 AM, Tiziano De Togni wrote: Damien Gerard ha scritto: Is there a standard Coding style for FreePascal (Pascal) available which programmers should use ? It is for my boss :) these are the FPC documents: http://wiki.freepascal.org/Coding_style http

Re: [fpc-pascal] FreePascal Coding style

2008-01-21 Thread Damien Gerard
On Jan 21, 2008, at 9:15 AM, Michael Van Canneyt wrote: On Mon, 21 Jan 2008, Damien Gerard wrote: Is there a standard Coding style for FreePascal (Pascal) available which programmers should use ? It is for my boss :) No, there isn't. I follow Borland coding style, but some o

[fpc-pascal] FreePascal Coding style

2008-01-20 Thread Damien Gerard
Is there a standard Coding style for FreePascal (Pascal) available which programmers should use ? It is for my boss :) -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important -- (f00ty) ___

[fpc-pascal] Read UTF8 Files

2008-01-19 Thread Damien Gerard
Hi ! I would like to read UTF8 files. There is TFileStream, and it seems to make the job. However, I need read _big_ files (with long string) so I would like to read block by block instead of a big string in memory with ReadAnsiString. How should I do ? Thanks ! -- Damien Gerard

Re: [fpc-pascal] beginner in pascal for Mac

2008-01-18 Thread Damien Gerard
On Jan 18, 2008, at 5:24 PM, Ingemar Ragnemalm wrote: [EMAIL PROTECTED] wrote: Damien Gerard wrote: On Jan 15, 2008, at 11:54 AM, Ezequiel Tacsir wrote: I was used to wok with freepascal on windows. Now, I have switch to mac (10.5) and would like to know what are the things that I

Re: [fpc-pascal] beginner in pascal for Mac

2008-01-18 Thread Damien Gerard
ascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important -- (f00ty) ___ fpc-pascal maillist

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Damien Gerard
On Jan 18, 2008, at 12:16 PM, Bee wrote: And yes, I'd like to have implemented that ("child units") in FPC. What is child unit? http://www.adaic.com/docs/95style/html/sec_4/4-1-1.html -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. S

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Damien Gerard
. -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important -- (f00ty) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Classes with abstract methods

2008-01-14 Thread Damien Gerard
On Jan 14, 2008, at 2:59 PM, Jonas Maebe wrote: On 14 Jan 2008, at 14:43, Damien Gerard wrote: On Jan 14, 2008, at 11:55 AM, Michael Van Canneyt wrote: The problem with this mechanism is that if you have another warning which occurs first, that will stop your compilation, you'll

Re: [fpc-pascal] Classes with abstract methods

2008-01-14 Thread Damien Gerard
that will stop your compilation, you'll never get to the abstract warning... I agree. May be a new option in a future release of fpc ? :) It would be nice to have a switch to do it. -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est im

[fpc-pascal] TStringList

2008-01-14 Thread Damien Gerard
is not the case due to there is not the property OwnObject as in a TObjectList. -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important -- (f00ty) ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] Classes with abstract methods

2008-01-14 Thread Damien Gerard
stract classes. Indeed I should do this. Thanks -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important -- (f00ty) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa

Re: [fpc-pascal] Classes with abstract methods

2008-01-14 Thread Damien Gerard
On Jan 14, 2008, at 10:53 AM, Michael Van Canneyt wrote: On Mon, 14 Jan 2008, Damien Gerard wrote: On Jan 14, 2008, at 10:27 AM, Michael Van Canneyt wrote: On Mon, 14 Jan 2008, Damien Gerard wrote: With fpc you can get "myfile.pas(77,47) Warning: Constructing a class "

Re: [fpc-pascal] Classes with abstract methods

2008-01-14 Thread Damien Gerard
On Jan 14, 2008, at 10:27 AM, Michael Van Canneyt wrote: On Mon, 14 Jan 2008, Damien Gerard wrote: With fpc you can get "myfile.pas(77,47) Warning: Constructing a class "" with abstract methods" I just would like to know why it is allowed to build classes wit

Re: [fpc-pascal] Problem using fpc

2008-01-14 Thread Damien Gerard
'.pas' I get: Error:Can't create object file x.o Error:Can't create object x.o Both systems run under XP Home+SP2. Presumably a configuration problem? Any suggestions(polite) please. May be some Permissions issues ? -- Damien Gerard [EMAIL PROT

[fpc-pascal] Classes with abstract methods

2008-01-14 Thread Damien Gerard
With fpc you can get "myfile.pas(77,47) Warning: Constructing a class "" with abstract methods" I just would like to know why it is allowed to build classes with abstract methods. AFIK it is different from other compilers and it is a bit strange for me. --

[fpc-pascal] Extension .pp or .pas

2008-01-11 Thread Damien Gerard
x27;t care about ? -- Damien Gerard [EMAIL PROTECTED] Le temps n'a pas d'importance. Seul le code est important -- (f00ty) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-05 Thread Damien Gerard
l" or text-mode) apps? I dislike ncurses; is there a better way? console & graph unit (BGI drivers under windows and Linux (X _not_ VGAlib) ) If one writes a book, _please_ use SDL for graphics and skip the legacy graph unit :) Agree :) -- Damien Gerard [EMAIL PROT

Re: [fpc-pascal] String comparison

2007-12-21 Thread Damien Gerard
On Dec 21, 2007, at 2:47 PM, Daniël Mantione wrote: Op Fri, 21 Dec 2007, schreef Damien Gerard: Just another question :) What is the most efficient way to check if a string is empty or not ? if s = '' then ... of this one if Length(s) <> 0 then ... Both generate the sam

Re: [fpc-pascal] Type declaration

2007-12-21 Thread Damien Gerard
On Dec 21, 2007, at 3:53 PM, ik wrote: Hi, On Dec 21, 2007 3:23 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: Hi ! I would like to know if there are any differences between these two following declarations : type TMyType = smallint; This is an "alias" to smallint, giv

[fpc-pascal] Makefile with fpcmake

2007-12-21 Thread Damien Gerard
tl,packages) into the /usr/local/lib/fpc/ 2.2.0/ without any results. Where I am wrong ? PS: My Makefile.fpc [package] name=Sayuri version=0.1 [require] packages= [target] programs=sayuri [compiler] unitdir=languages includedir=. [default] target=all [clean] files=$(wildcard *$(OEXT)

[fpc-pascal] String comparison

2007-12-21 Thread Damien Gerard
Just another question :) What is the most efficient way to check if a string is empty or not ? if s = '' then ... of this one if Length(s) <> 0 then ... -- Damien Gerard [EMAIL PROTECTED] People who used magic without knowing what they were doing usually came to a sticky e

[fpc-pascal] Type declaration

2007-12-21 Thread Damien Gerard
Hi ! I would like to know if there are any differences between these two following declarations : type TMyType = smallint; And type TMyType = type smallint; -- Damien Gerard [EMAIL PROTECTED] People who used magic without knowing what they were doing usually came to a sticky end

[fpc-pascal] [2.3.1] Can't take the address of constant expressions

2007-12-04 Thread Damien Gerard
y ref: TAnotherClass read p_ref write setRef; end; Where am I wrong for the 2.3.1 ? -- Damien Gerard [EMAIL PROTECTED] People who used magic without knowing what they were doing usually came to a sticky end. All over the entire room, sometimes. -- (Terry Pratchett, Moving Pic