Am 21.03.2013 18:58 schrieb "Hans-Peter Diettrich" <drdiettri...@aol.com>: > > Kostas Michalopoulos schrieb: > >> Thanks, i understand that. My question is, can i somehow make FPC to add AddRef/Release calls also to TBlah so i can use refcounting with a class just like i would use it with an interface? > > > When you declare IBlah and implement it in TBlah, you can use: > > var MyBlah: IBlah; //instead of TBlah! > ... > MyBlah := TBlah.Create as IBlah;
You don't need the "as". Regards, Sven
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus