[fpc-devel]class as parameter?
Aleksey V. Vaneev
picoder at sbis.komi.ru
Thu Sep 14 06:08:57 CEST 2000
I don't know how to ask and if that's really a problem... But I'll
I have a function that locks (in some medium) an object and returns
a real pointer to it.
So, I have a function:
function lockObj (Id: DWord): TMyObject;
And it works just fine! Very fast!
And if I declare something like this:
function lockObj (Id: DWord; ExpectClass: TClass): TMyObject;
It works 8-9 times slower even with the same internal functionality...
And this really makes me cry... :(
Aleksey mailto:picoder at sbis.komi.ru
More information about the fpc-devel