Il 28/05/2020 18:00, Graeme Geldenhuys ha scritto:
Though in general, I would
just use Indy.
+1
The main reason is that I have a relevant amount of Delphi/Kylix code
using Delphi's Sockets unit. That way porting that code to Lazarus
becomes trivial.
Secondly my applications typically involve
> On May 29, 2020, at 2:15 PM, Michael Van Canneyt
> wrote:
>
> I think what you're looking for is:
>
> if TMethod(CallBack).Data=XXX then
TMethod is exactly what I was looking for. Thank you Michael.
Regards,
Ryan Joseph
___
fpc-pascal m
On Fri, 29 May 2020, Michael Van Canneyt wrote:
On Fri, 29 May 2020, Ryan Joseph via fpc-pascal wrote:
In the example below "callback" is assigned to a method of "obj", but is it
possible to get the class back from the variable? In the pseudo code I would
expect .GetClass to return "obj".
On Fri, 29 May 2020, Ryan Joseph via fpc-pascal wrote:
In the example below "callback" is assigned to a method of "obj", but is it possible to get the
class back from the variable? In the pseudo code I would expect .GetClass to return "obj". I think "of
object" must be a record which keep bo
In the example below "callback" is assigned to a method of "obj", but is it
possible to get the class back from the variable? In the pseudo code I would
expect .GetClass to return "obj". I think "of object" must be a record which
keep both the class and method pointer but I don't know how to acc