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

Honza befelemepeseveze at gmail.com
Thu Apr 26 13:09:23 CEST 2012


2012/4/26 ZHANG Dao-yuan <1123monkey at gmail.com>:
> Thanks for your makeshift :) . But the problem still confusing me. My code
> is in type-section and it's a declaration not a statement.
>
>> tFpGMap<tObject
>
> The form of the code is similar to a comparision expression and `<' here
> looks like a less-than operator. But they are not. In my opinion, fpc should
> not take the declaration as a statement then try to search for the nonsense
> operator-overloaded methods.

You might want to have a look at
http://code.google.com/p/fprb/wiki/TheCmpBTreeMap

-jan



More information about the fpc-pascal mailing list