Hi,

Is there some way to write this:
type
  generic ICloneable<T> = interface
    function Clone: T;
  end;

...using this sintaxe:
type
  ICloneable<T> = interface
    function Clone: T;
  end;

Because I would like to use:
TFoo = class(ICloneable<TFoo>)

...instead use:
TFoo = class(specialize ICloneable<TFoo>)

But using {$mode objfpc}, ie, if exists some compiler directive to
change only this syntax, that is the same in Delphi.

I would like to know why exists this difference, what the advantages
for mode objfpc using this syntax.

Thank you very much.


Marcos Douglas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to