I was trying to use a generic class TDictionary with type T. This
class has a method that compares a variable of T with another one.
When I specialize a class using this TDictionary with a type:
TSecurity = object
end;
e.g. TNewDict = class(TDictionary);
it raise a compiler complaini
On Wed, 15 Aug 2018, Dennis wrote:
I was trying to use a generic class TDictionary with type T. This
class has a method that compares a variable of T with another one.
When I specialize a class using this TDictionary with a type:
TSecurity = object
end;
e.g. TNewDict = class(TDict
Michael Van Canneyt wrote:
On Wed, 15 Aug 2018, Dennis wrote:
I was trying to use a generic class TDictionary with type T. This
class has a method that compares a variable of T with another one.
When I specialize a class using this TDictionary with a type:
TSecurity = object
end;
On Wed, 15 Aug 2018, Dennis wrote:
Michael Van Canneyt wrote:
On Wed, 15 Aug 2018, Dennis wrote:
I was trying to use a generic class TDictionary with type T. This
class has a method that compares a variable of T with another one.
When I specialize a class using this TDictionary with
Am 15.08.2018 um 11:17 schrieb Michael Van Canneyt:
On Wed, 15 Aug 2018, Dennis wrote:
Michael Van Canneyt wrote:
On Wed, 15 Aug 2018, Dennis wrote:
I was trying to use a generic class TDictionary with type T.
This class has a method that compares a variable of T with another
one.
Am 15.08.2018 um 10:59 schrieb Dennis:
Why class operator is accepted for advanced records but not old
fashion object???
Because objects are not records. Internally they are handled more
closely to classes than records.
Regards,
Sven
___
fpc-pascal m
On Wed, 15 Aug 2018, Sven Barth via fpc-pascal wrote:
But maybe you are using mode delphi ? If so, try separating out the
object
definition in a separate unit which is not compiled in delphi mode.
A global operator won't help at all as (currently) the operator won't be
visible during the s