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/ppcppc -- Damien

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

2008-09-01 Thread Damien Gerard
] 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 /usr/local/bin/ppc386 -- Damien Gerard [EMAIL

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

2008-08-30 Thread Damien Gerard
(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 robotiseraient-ils

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 robotiseraient-ils

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

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

2008-08-28 Thread Damien Gerard
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 PROTECTED] Si ces robots s'humanisaient, inversement les êtres humains se

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

2008-08-28 Thread Damien Gerard
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 PROTECTED] Si ces robots

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

2008-08-28 Thread Damien Gerard
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 êtres humains se robotiseraient-ils

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

2008-08-28 Thread Damien Gerard
-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 robotiseraient-ils ? ___ fpc-pascal

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] Si ces

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

2008-08-27 Thread Damien Gerard
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'humanisaient, inversement les êtres humains se

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, inversement les

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

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
. 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. -- Damien Gerard [EMAIL

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 - fpc-pascal

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

[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. -- Douglas

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

Re: [fpc-pascal] FPC scripting suport

2008-05-28 Thread Damien Gerard
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. -- Douglas Lenat

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 Linux *and* OS X

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 [EMAIL

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

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 (Windows/Linux

[fpc-pascal] Pointer address into string

2008-05-05 Thread Damien Gerard
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] 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. -- Douglas Lenat ___ fpc

Re: [fpc-pascal] pascal on macbook

2008-04-26 Thread Damien Gerard
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 10 million rules. -- Douglas

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

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

[fpc-pascal] Generics

2008-03-31 Thread Damien Gerard
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] Intelligence is 10 million rules. -- Douglas Lenat ___ fpc-pascal

Re: [fpc-pascal] Generics

2008-03-31 Thread Damien Gerard
the 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 = class

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 have got

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 = class(TObject) private

Re: [fpc-pascal] Generics

2008-03-31 Thread Damien Gerard
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 ___ fpc-pascal maillist

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 ? foo.pas Actually there is the same error with an intermediate class :( -- Damien Gerard [EMAIL PROTECTED] Intelligence is 10 million rules. -- Douglas

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 ? foo.pas Actually there is the same error with an intermediate class :( Segmentation faults

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 ? foo.pas Actually there is the same error

Re: [fpc-pascal] connection problem

2008-03-27 Thread Damien Gerard
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-pascal@lists.freepascal.org http://lists.freepascal.org/mailman

[fpc-pascal] Functions with out parameters

2008-03-10 Thread Damien Gerard
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 Gerard [EMAIL PROTECTED] Intelligence is 10

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 following made

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 is no needed, just

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 the compiler is so

Re: [fpc-pascal] Empty string

2008-03-06 Thread Damien Gerard
... 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.freepascal.org/mailman/listinfo/fpc-pascal

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

2008-03-04 Thread Damien Gerard
, 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
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 FPC ? Regards. -- Damien

[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 -- (f00ty

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 recognized

Re: [fpc-pascal] XML Programming..

2008-02-13 Thread Damien Gerard
/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] 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 unixes CurrentTM.Semaphore

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 unixes CurrentTM.Semaphore

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

[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 -- (f00ty

[fpc-pascal] Internal Error 200212277

2008-01-23 Thread Damien Gerard
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 http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Heterogenous list of objects

2008-01-22 Thread Damien Gerard
@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.freepascal.org http

[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) ___ fpc

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 snip List1: TStringList

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

[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

[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] 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. Seul le code est important

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] 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 PROTECTED] Le temps n'a

[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. -- Damien Gerard [EMAIL PROTECTED

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 with abstract methods. AFIK

Re: [fpc-pascal] Classes with abstract methods

2008-01-14 Thread Damien Gerard
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.freepascal.org/mailman

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

[fpc-pascal] TStringList

2008-01-14 Thread Damien Gerard
there 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.freepascal.org

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 important -- (f00ty

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 never

[fpc-pascal] Extension .pp or .pas

2008-01-11 Thread Damien Gerard
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
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 PROTECTED] People who

[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] 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 end. All over

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 same code. Thanks

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, giving it a new way

[fpc-pascal] Makefile with fpcmake

2007-12-21 Thread Damien Gerard
version=0.1 [require] packages= [target] programs=sayuri [compiler] unitdir=languages includedir=. [default] target=all [clean] files=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT)) -- Damien Gerard [EMAIL PROTECTED] People who used magic without knowing what they were