Re: [fpc-pascal] Can it map class type as key?

2012-04-28 Thread ZHANG Dao-yuan
On 04/29/2012 10:34 AM, ZHANG Dao-yuan wrote: I have another question now. Why doesn't the developers of fgl overload `>' `<' operator for class-type in fgl unit? Ah, it will override overloaded-class-(lessThan|greaterThan)-operator which is defined in other units. :( By the way, Will `class

Re: [fpc-pascal] Can it map class type as key?

2012-04-28 Thread ZHANG Dao-yuan
On 04/26/2012 06:53 PM, Sven Barth wrote: This has nothing to do with < and > in the declaration. TFPGMap uses < and > comparisons for key comparisons, so these operators need to be overloaded. You can't use global operators here, because of scope problems, so you need to use either a different

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

2012-04-28 Thread Anthony Walter
I am running linux and already have fpc installed but i want to install side-by-side a newer verson of fpc ... I downloaded the sources did make all && make install PREFIX=/home/username ... and everything's okay. I made a /home/username/.fpc.cfg file, but when i type fpc in the CLI i still get t