> Is there anyway to avoid this dilemma? Because I don't want treap.pas to "reversely" rely on a specialized class.
No, it's not a dilemma, but rather a requirement. Before generics specialization, all required operations for given type must be known. This is because the symbol table when the generics is parsed must be reconstructed when it gets specialized. Think about declaring usual classes with the generic parameter replaced with actual type. If at that time, the operation < is not yet defined, the code won't compile anyway. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-global-operator-overloading-tp4029446p4029447.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
